diff options
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |