From 79560be18d43a971e9bfc6dfa910ce8ef40a2860 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 21 Jul 2018 13:37:57 +0200 Subject: Emacs: make closing buffers less confusing --- emacs/.emacs.d/main.el | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index c02ddc66..1bb513c0 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -2489,6 +2489,7 @@ Pass ARG to `comint-delchar-or-maybe-eof'." (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) -- cgit 1.4.1