From b01d116b2fc4ff2dcc966ee4bd4559d2b822f4a9 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 21 Aug 2024 20:30:39 +0300 Subject: emacs: Update eshell hooks. --- .config/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 5411c67..ba92084 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -780,7 +780,8 @@ ("C-l" . 'thanos/eshell-clear)) :hook ((eshell-mode . (lambda () (thanos/set-eshell-aliases thanos/aliases) - (display-line-numbers-mode -1))))) + (when (bound-and-true-p display-line-numbers-mode) + (display-line-numbers-mode -1)))))) (use-package eshell-git-prompt :straight nil -- cgit v1.2.3