From: Peng Li Date: Fri, 15 Sep 2017 15:07:48 +0000 (+0800) Subject: Emacs - kill the buffer when quit magit X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=f701de9c37268e6621a26d03313e8439dd1ccaa5;p=dotfiles.git Emacs - kill the buffer when quit magit --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 1347079..f304e37 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1262,7 +1262,9 @@ and Defined keys, using vi keybindings, Refer abo-abo's setting [[https://github (define-key map "n" nil) (define-key map "p" nil) (define-key map "v" 'recenter-top-bottom) - (define-key map "i" 'magit-section-toggle))) + (define-key map "i" 'magit-section-toggle)) + (define-key magit-mode-map "q" (lambda () (interactive) + (magit-mode-bury-buffer t)))) #+END_SRC * Eshell