aboutsummaryrefslogtreecommitdiffstats
path: root/oni-eshell.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-02-26 02:19:53 -0800
committerGravatar Tom Willemse2019-02-26 02:19:53 -0800
commit8596739704865da56a52fdd196feb2d0201f276b (patch)
tree2ac90ca8453257816a896052aeeb7c7a6c59dff8 /oni-eshell.el
parent7f2de7064b490ae9b2754107fb332d74af1e3f86 (diff)
downloademacs-config-8596739704865da56a52fdd196feb2d0201f276b.tar.gz
emacs-config-8596739704865da56a52fdd196feb2d0201f276b.zip
Don't run eshell-fringe-status in terminal Emacs
Diffstat (limited to 'oni-eshell.el')
-rw-r--r--oni-eshell.el6
1 files changed, 4 insertions, 2 deletions
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 <tom@ryuslash.org>
;; 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)