emacs: Apparently 'kill-this-buffer' doesn't work as you would expect from the name

This commit is contained in:
Charlotte Van Petegem 2024-06-11 16:40:52 +02:00
parent b912f81e40
commit c3925ee38c
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 7 additions and 2 deletions

View file

@ -17,6 +17,11 @@
:config
(general-evil-setup t)
(defun chvp--kill-current-buffer ()
(interactive)
(kill-buffer (current-buffer))
)
;; Create bindings under the leader
(general-create-definer lmap
:states '(normal visual insert emacs motion)
@ -33,7 +38,7 @@
":" '(eval-expression :which-key "eval")
"b" '(:ignore t :which-key "buffer")
"bd" '(kill-this-buffer :which-key "kill")
"bd" '(chvp--kill-current-buffer :which-key "kill")
"br" '(rename-buffer :which-key "rename")
"f" '(:ignore t :which-key "file")