Replace kill-this-buffer with kill-current-buffer

As per the documentation for kill-this-buffer, it should only be invoked
from the menu and behaves unpredictably when invoked programmatically.
This commit is contained in:
Siddharth Shekar 2019-05-30 18:54:58 -07:00
parent 0c743afcfd
commit aa64cf9426
14 changed files with 22 additions and 22 deletions

View file

@ -136,7 +136,7 @@ If BANG, search Doom documentation."
(evil-ex-define-cmd "grevert" #'git-gutter:revert-hunk)
;;; Dealing with buffers
(evil-ex-define-cmd "k[ill]" #'doom/kill-this-buffer)
(evil-ex-define-cmd "k[ill]" #'doom/kill-current-buffer)
(evil-ex-define-cmd "k[ill]all" #'+evil:kill-all-buffers)
(evil-ex-define-cmd "k[ill]m" #'+evil:kill-matching-buffers)
(evil-ex-define-cmd "k[ill]o" #'doom/kill-other-buffers)

View file

@ -200,7 +200,7 @@ and complains if a module is loaded too early (during startup)."
(+evil-collection-init (if EMACS26+ 'replace "replace")))
(evil-define-key* 'normal process-menu-mode-map
"q" #'kill-this-buffer
"q" #'kill-current-buffer
"d" #'process-menu-delete-process)
;; Load the rest