diff options
author | 2019-05-31 07:49:43 -0700 | |
---|---|---|
committer | 2019-05-31 07:49:43 -0700 | |
commit | 585e6b4e76ddeb58f6a039cbcfa9f0cea15b9441 (patch) | |
tree | ad6f7076b0eb98841bbaed9348d7f258da26a242 | |
parent | 08cbbcec4df2ce30f9e0959ea36a167a9bd0005a (diff) | |
download | emacs-config-585e6b4e76ddeb58f6a039cbcfa9f0cea15b9441.tar.gz emacs-config-585e6b4e76ddeb58f6a039cbcfa9f0cea15b9441.zip |
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’.
-rw-r--r-- | oni-eshell.el | 6 |
1 files changed, 3 insertions, 3 deletions
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 <tom@ryuslash.org> ;; 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)) |