emacs: Apparently 'kill-this-buffer' doesn't work as you would expect from the name
This commit is contained in:
parent
b912f81e40
commit
c3925ee38c
2 changed files with 7 additions and 2 deletions
|
@ -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")
|
||||
|
|
|
@ -171,7 +171,7 @@ in
|
|||
)
|
||||
)
|
||||
;; Never actually quit mu4e, just close the current buffer (making sure the modeline is still visible)
|
||||
(defalias 'mu4e-quit 'kill-this-buffer)
|
||||
(defalias 'mu4e-quit 'chvp--kill-current-buffer)
|
||||
(define-advice mu4e--context-ask-user
|
||||
(:around (orig-fun &rest args) mu4e--context-ask-user-completing-read)
|
||||
"Replace `mu4e-read-option` by general-purpose completing-read"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue