summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-07-21 13:37:57 +0200
committerAlan Pearce2018-07-21 13:37:57 +0200
commit79560be18d43a971e9bfc6dfa910ce8ef40a2860 (patch)
treee6c59feacf2f3fd30128fea0b51d0fa2b4b21dd8 /emacs
parent1b937705295af740287fee6624955c6157cc1f4f (diff)
downloadnixfiles-79560be18d43a971e9bfc6dfa910ce8ef40a2860.tar.lz
nixfiles-79560be18d43a971e9bfc6dfa910ce8ef40a2860.tar.zst
nixfiles-79560be18d43a971e9bfc6dfa910ce8ef40a2860.zip
Emacs: make closing buffers less confusing
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el1
1 files changed, 1 insertions, 0 deletions
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)