summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'init.org')
-rw-r--r--init.org8
1 files changed, 5 insertions, 3 deletions
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