From 23f43af23c48e979781d453a6e1c9b349082dbc1 Mon Sep 17 00:00:00 2001 From: Diego Berrocal Date: Sat, 24 Oct 2015 16:56:58 -0400 Subject: [PATCH] Disable line numbers in shells --- layers/shell/packages.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layers/shell/packages.el b/layers/shell/packages.el index d19dc120f..e9d34f1fd 100644 --- a/layers/shell/packages.el +++ b/layers/shell/packages.el @@ -95,6 +95,7 @@ is achieved by adding the relevant text properties." (defun spacemacs//init-eshell () "Stuff to do when enabling eshell." (setq pcomplete-cycle-completions nil) + (if linum-mode (linum-mode -1)) (unless shell-enable-smart-eshell ;; we don't want auto-jump to prompt when smart eshell is enabled. ;; Idea: maybe we could make auto-jump smarter and jump only if the @@ -256,6 +257,7 @@ is achieved by adding the relevant text properties." (kill-buffer (process-buffer proc)) (delete-window)))))) (add-hook 'term-mode-hook 'ansi-term-handle-close) + (add-hook 'term-mode-hook (lambda () (linum-mode -1))) (defun spacemacs/default-pop-shell () "Open the default shell in a popup."