Commit b8176a79 authored by Guilherme Semente's avatar Guilherme Semente 🌱

Always bury certain buffers on kill-buffer operations

parent 4c345013
......@@ -232,6 +232,17 @@ You may find other key bindings inside use-package statements."
;; (setq enable-recursive-minibuffers t)
;; (minibuffer-depth-indicate-mode 1)
(defvar semente-maybe-bury-buffer-list '("*scratch*" "*Messages*"))
(defun semente-maybe-bury-kill-buffer-query-function ()
"Bury buffers instead of killing them."
(if (member (buffer-name (current-buffer)) semente-maybe-bury-buffer-list)
(add-hook 'kill-buffer-query-functions 'semente-maybe-bury-kill-buffer-query-function))
(use-package time
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment