diff options
author | Case Duckworth | 2021-04-22 17:15:32 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-22 17:15:32 -0500 |
commit | d407e9de54081e61727c6fec1fba7facad8f8234 (patch) | |
tree | 461e543b7acd0c61939dbd28567a2771bae28b62 | |
parent | Add a leader bind to kill emacs (diff) | |
download | emacs-d407e9de54081e61727c6fec1fba7facad8f8234.tar.gz emacs-d407e9de54081e61727c6fec1fba7facad8f8234.zip |
Add <F12> bind to toggle eshell
-rw-r--r-- | init.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/init.el b/init.el index 49e1e6b..362e0e1 100644 --- a/init.el +++ b/init.el | |||
@@ -436,10 +436,12 @@ | |||
436 | (if (and (eolp) (looking-back eshell-prompt-regexp)) | 436 | (if (and (eolp) (looking-back eshell-prompt-regexp)) |
437 | (eshell-life-is-too-much) | 437 | (eshell-life-is-too-much) |
438 | (delete-forward-char arg))) | 438 | (delete-forward-char arg))) |
439 | |||
440 | (global-set-key (kbd "<f12>") #'eshell) | ||
439 | 441 | ||
440 | (hook-defun eshell-setup 'eshell-mode-hook | 442 | (hook-defun eshell-setup 'eshell-mode-hook |
441 | (define-key eshell-mode-map (kbd "C-d") | 443 | (define-key eshell-mode-map (kbd "<f12>") #'bury-buffer) |
442 | #'eshell-quit-or-delete-char) | 444 | (define-key eshell-mode-map (kbd "C-d") #'eshell-quit-or-delete-char) |
443 | (when (boundp 'simple-modeline--mode-line) | 445 | (when (boundp 'simple-modeline--mode-line) |
444 | (setq mode-line-format '(:eval simple-modeline--mode-line))))) | 446 | (setq mode-line-format '(:eval simple-modeline--mode-line))))) |
445 | 447 | ||