all repos — archive/dotfiles @ 79560be18d43a971e9bfc6dfa910ce8ef40a2860

Superseded by nixfiles

Emacs: make closing buffers less confusing
Alan Pearce alan@alanpearce.eu
Sat, 21 Jul 2018 13:37:57 +0200
commit

79560be18d43a971e9bfc6dfa910ce8ef40a2860

parent

1b937705295af740287fee6624955c6157cc1f4f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -2489,6 +2489,7 @@ (";" . evil-ex))             (define-key evil-motion-state-map (kbd "C-;") #'evil-avy-goto-line)
             (define-key evil-normal-state-map [escape] #'keyboard-quit)
             (define-key evil-visual-state-map [escape] #'keyboard-quit)
+            (define-key evil-window-map (kbd "q") #'kill-or-delete-this-buffer-dwim)
             (define-key minibuffer-local-map [escape] #'minibuffer-keyboard-quit)
             (define-key minibuffer-local-ns-map [escape] #'minibuffer-keyboard-quit)
             (define-key minibuffer-local-completion-map [escape] #'minibuffer-keyboard-quit)