Add <F12> bind to toggle eshell

This commit is contained in:
Case Duckworth 2021-04-22 17:15:32 -05:00
parent 7786e0ec4a
commit d407e9de54
1 changed files with 4 additions and 2 deletions

View File

@ -436,10 +436,12 @@
(if (and (eolp) (looking-back eshell-prompt-regexp))
(eshell-life-is-too-much)
(delete-forward-char arg)))
(global-set-key (kbd "<f12>") #'eshell)
(hook-defun eshell-setup 'eshell-mode-hook
(define-key eshell-mode-map (kbd "C-d")
#'eshell-quit-or-delete-char)
(define-key eshell-mode-map (kbd "<f12>") #'bury-buffer)
(define-key eshell-mode-map (kbd "C-d") #'eshell-quit-or-delete-char)
(when (boundp 'simple-modeline--mode-line)
(setq mode-line-format '(:eval simple-modeline--mode-line)))))