aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorLin Sun2024-04-27 06:55:49 +0000
committerJim Porter2024-05-02 20:13:20 -0700
commita2ccda71c15f75edef0711f94351af0dd7241beb (patch)
tree148506b6da3a2cd3b2a7a45ec5808d57abce0f82 /lisp/eshell
parent6171a9a628fb71b172598c7d7bbea8448ee251d6 (diff)
downloademacs-a2ccda71c15f75edef0711f94351af0dd7241beb.tar.gz
emacs-a2ccda71c15f75edef0711f94351af0dd7241beb.zip
Only run 'eshell-first-time-mode-hook' once per Emacs session
* lisp/eshell/esh-mode.el (eshell-mode): Set 'eshell-first-time-p' to nil (bug#70610).
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index b15f99a0359..5de200ce4b5 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -418,8 +418,10 @@ and the hook `eshell-exit-hook'."
418 418
419 (add-hook 'kill-buffer-hook #'eshell-kill-buffer-function t t) 419 (add-hook 'kill-buffer-hook #'eshell-kill-buffer-function t t)
420 420
421 (if eshell-first-time-p 421 (when eshell-first-time-p
422 (run-hooks 'eshell-first-time-mode-hook)) 422 (setq eshell-first-time-p nil)
423 (run-hooks 'eshell-first-time-mode-hook))
424
423 (run-hooks 'eshell-post-command-hook)) 425 (run-hooks 'eshell-post-command-hook))
424 426
425(put 'eshell-mode 'mode-class 'special) 427(put 'eshell-mode 'mode-class 'special)