Don’t use ‘window-system’, use ‘display-graphic-p’
Apparently ‘window-system’ has been deprecated as a boolean value and I forgot about ‘display-graphic-p’.
This commit is contained in:
parent
08cbbcec4d
commit
585e6b4e76
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 20190531074826
|
;; Version: 20190531074910
|
||||||
;; Package-Requires: (eshell-fringe-status esh-autosuggest)
|
;; Package-Requires: (eshell-fringe-status esh-autosuggest)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
(add-hook 'eshell-mode-hook 'esh-autosuggest-mode)
|
(add-hook 'eshell-mode-hook 'esh-autosuggest-mode)
|
||||||
(add-hook 'eshell-mode-hook 'goto-address-mode)
|
(add-hook 'eshell-mode-hook 'goto-address-mode)
|
||||||
|
|
||||||
(if (window-system)
|
(when (display-graphic-p)
|
||||||
(add-hook 'eshell-mode-hook 'eshell-fringe-status-mode))
|
(add-hook 'eshell-mode-hook 'eshell-fringe-status-mode))
|
||||||
|
|
||||||
;;;###autoload(with-eval-after-load 'eshell (require 'oni-eshell))
|
;;;###autoload(with-eval-after-load 'eshell (require 'oni-eshell))
|
||||||
|
|
Loading…
Reference in a new issue