about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-08-08 22:45:50 -0500
committerCase Duckworth2021-08-08 22:45:50 -0500
commit9f93b9ab5c5a9ad8c5eb7b7eabf1da334790b061 (patch)
tree8bf18a2cd7a74b7f16365c192c75220afef138ed
parentShow narrowed status in mode-line (diff)
downloademacs-9f93b9ab5c5a9ad8c5eb7b7eabf1da334790b061.tar.gz
emacs-9f93b9ab5c5a9ad8c5eb7b7eabf1da334790b061.zip
Add `eshell-buffer-name`
-rw-r--r--init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.el b/init.el index 30b81fc..4e4b3e4 100644 --- a/init.el +++ b/init.el
@@ -393,6 +393,12 @@ like a dumbass."
393 ;; Etc. 393 ;; Etc.
394 (when (boundp 'simple-modeline--mode-line) 394 (when (boundp 'simple-modeline--mode-line)
395 (setq mode-line-format '(:eval simple-modeline--mode-line)))) 395 (setq mode-line-format '(:eval simple-modeline--mode-line))))
396
397 (defun eshell-buffer-name ()
398 (rename-buffer (concat "*eshell*<" (eshell/pwd) ">") t))
399
400 (add-hook 'eshell-directory-change-hook #'eshell-buffer-name)
401 (add-hook 'eshell-prompt-load-hook #'eshell-buffer-name)
396 402
397 (:hook eshell-mode@setup 403 (:hook eshell-mode@setup
398 eshell-arg-hist-mode)) 404 eshell-arg-hist-mode))