summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-01-11 23:49:14 +0000
committerjao <jao@gnu.org>2022-01-11 23:49:14 +0000
commit654dc5cbc78fc8abb35f6020aa07f287a6002cc2 (patch)
treedff871451e14213f943f4a7ffdb347806659ffb2 /init.org
parent1378aaead0c1cc60e634972931d4a87b67fdca97 (diff)
downloadelibs-654dc5cbc78fc8abb35f6020aa07f287a6002cc2.tar.gz
elibs-654dc5cbc78fc8abb35f6020aa07f287a6002cc2.tar.bz2
nits
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