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).
This commit is contained in:
@@ -418,8 +418,10 @@ and the hook `eshell-exit-hook'."
|
||||
|
||||
(add-hook 'kill-buffer-hook #'eshell-kill-buffer-function t t)
|
||||
|
||||
(if eshell-first-time-p
|
||||
(run-hooks 'eshell-first-time-mode-hook))
|
||||
(when eshell-first-time-p
|
||||
(setq eshell-first-time-p nil)
|
||||
(run-hooks 'eshell-first-time-mode-hook))
|
||||
|
||||
(run-hooks 'eshell-post-command-hook))
|
||||
|
||||
(put 'eshell-mode 'mode-class 'special)
|
||||
|
||||
Reference in New Issue
Block a user