aboutsummaryrefslogtreecommitdiffstats
path: root/oni-eshell.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-05-31 07:49:43 -0700
committerGravatar Tom Willemse2019-05-31 07:49:43 -0700
commit585e6b4e76ddeb58f6a039cbcfa9f0cea15b9441 (patch)
treead6f7076b0eb98841bbaed9348d7f258da26a242 /oni-eshell.el
parent08cbbcec4df2ce30f9e0959ea36a167a9bd0005a (diff)
downloademacs-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’.
Diffstat (limited to 'oni-eshell.el')
-rw-r--r--oni-eshell.el6
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))