From 654dc5cbc78fc8abb35f6020aa07f287a6002cc2 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 11 Jan 2022 23:49:14 +0000 Subject: nits --- init.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index 43ef0a0..37b7bd7 100644 --- a/init.org +++ b/init.org @@ -1834,9 +1834,11 @@ :init (setq eshell-directory-name "~/.emacs.d/eshell") (setq eshell-hist-ignoredups 'erase) - :config - (add-hook 'eshell-mode-hook - (lambda () (setq outline-regexp eshell-prompt-regexp)))) + + (defun jao-eshell--outline () + (setq-local outline-regexp eshell-prompt-regexp)) + + :hook (eshell-mode . jao-eshell--outline)) #+end_src ***** Colors #+begin_src emacs-lisp -- cgit v1.2.3