Add `eshell-buffer-name`
This commit is contained in:
parent
e2f167fbc5
commit
9f93b9ab5c
6
init.el
6
init.el
|
@ -393,6 +393,12 @@ like a dumbass."
|
|||
;; Etc.
|
||||
(when (boundp 'simple-modeline--mode-line)
|
||||
(setq mode-line-format '(:eval simple-modeline--mode-line))))
|
||||
|
||||
(defun eshell-buffer-name ()
|
||||
(rename-buffer (concat "*eshell*<" (eshell/pwd) ">") t))
|
||||
|
||||
(add-hook 'eshell-directory-change-hook #'eshell-buffer-name)
|
||||
(add-hook 'eshell-prompt-load-hook #'eshell-buffer-name)
|
||||
|
||||
(:hook eshell-mode@setup
|
||||
eshell-arg-hist-mode))
|
||||
|
|
Loading…
Reference in New Issue