diff --git a/oni-eshell.el b/oni-eshell.el index 3228b7b..f3f5b71 100644 --- a/oni-eshell.el +++ b/oni-eshell.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190226014039 +;; Version: 20190226021452 ;; Package-Requires: (eshell-fringe-status) ;; This program is free software; you can redistribute it and/or modify @@ -48,10 +48,12 @@ (define-key eshell-mode-map (kbd "C-d") #'oni-eshell--C-d)) (add-hook 'eshell-load-hook #'oni-eshell--enable-truncating-buffers) -(add-hook 'eshell-mode-hook 'eshell-fringe-status-mode) (add-hook 'eshell-mode-hook 'goto-address-mode) (add-hook 'eshell-first-time-mode-hook #'oni-eshell--set-eshell-C-d) +(if (window-system) + (add-hook 'eshell-mode-hook 'eshell-fringe-status-mode)) + ;;;###autoload(with-eval-after-load 'eshell (require 'oni-eshell)) (provide 'oni-eshell)