From 8596739704865da56a52fdd196feb2d0201f276b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 26 Feb 2019 02:19:53 -0800 Subject: Don't run eshell-fringe-status in terminal Emacs --- oni-eshell.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'oni-eshell.el') 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 ;; 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) -- cgit v1.2.3-54-g00ecf