Flip default kill flag in quit-window #309
This commit is contained in:
parent
b6eec664bb
commit
9632b8c09d
3 changed files with 8 additions and 2 deletions
|
@ -235,6 +235,12 @@ instead)."
|
|||
(get-buffer-window-list nil nil t))))
|
||||
(add-hook 'kill-buffer-query-functions #'doom|protect-visible-buffers)
|
||||
|
||||
;; temporary windows often have q bound to `quit-window', which only buries the
|
||||
;; contained buffer. I rarely don't want that buffer killed, so...
|
||||
(defun doom*quit-window (orig-fn &optional kill window)
|
||||
(funcall orig-fn (not kill) window))
|
||||
(advice-add #'quit-window :around #'doom*quit-window)
|
||||
|
||||
|
||||
;;
|
||||
;; Plugins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue