fix(emacs): change window delete keybinding wd

The current keybinding was set to kill the buffer that was causing an
issue when there was a spit of the same buffers and you wanted to
close one. If your were in this situation them the buffer would be
deleted and both of the windows would close. This is not what I want
from the "delete window" command, the expected behaviour is to close
the one window and leave the other window. This is what
`evil-window-delete` dose. This prevents the buffer from getting
deleted and if it is the last buffer emacs would then close.
This commit is contained in:
Ade Attwood 2021-05-16 20:00:59 +01:00
parent fbd607ce5d
commit 4b71e6bc0e

View file

@ -85,7 +85,7 @@
;; Windows. Just rebind all of the evil window bindings to "SPC w"
;; so we dont have to keep hitting "CTRL-w"
"w" '(evil-window-map :which-key "Windows")
"wd" 'kill-buffer-and-window
"wd" 'evil-window-delete
;; Org Mode
"o" '(evil-window-map :which-key "Org Mode")
"oa" 'org-agenda