diff --git a/oni-eshell.el b/oni-eshell.el index 1293749..132403d 100644 --- a/oni-eshell.el +++ b/oni-eshell.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190531074826 +;; Version: 20190531074910 ;; Package-Requires: (eshell-fringe-status esh-autosuggest) ;; This program is free software; you can redistribute it and/or modify @@ -53,8 +53,8 @@ (add-hook 'eshell-mode-hook 'esh-autosuggest-mode) (add-hook 'eshell-mode-hook 'goto-address-mode) -(if (window-system) - (add-hook 'eshell-mode-hook 'eshell-fringe-status-mode)) +(when (display-graphic-p) + (add-hook 'eshell-mode-hook 'eshell-fringe-status-mode)) ;;;###autoload(with-eval-after-load 'eshell (require 'oni-eshell))