Added magit-diff to special buffers list.

This commit is contained in:
tastytea 2019-03-20 22:40:41 +01:00
parent a99ddf3cd1
commit ec7d237709

View File

@ -109,7 +109,10 @@
(use-package midnight (use-package midnight
:config :config
(setq midnight-period "2 hours" ; Clean every 2 hours (setq midnight-period "2 hours" ; Clean every 2 hours
clean-buffer-list-delay-general 1)) ; Clean normal buffers after 1 day clean-buffer-list-delay-general 1 ; Clean normal buffers after 1 day
clean-buffer-list-kill-regexps ; Add these to special buffers
(nconc clean-buffer-list-kill-regexps
'("\\`magit-diff: .*\\'"))))
;;;;;;;;;;;;;;;;;;;; Keybindings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;; Keybindings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -422,7 +425,7 @@
:defer t :defer t
:mode :mode
(("/cron\\.d/" . crontab-mode)) (("/cron\\.d/" . crontab-mode))
("/etc/crontab\\'" . crontab-mode)) ("\\`'/etc/crontab\\'" . crontab-mode))
(use-package nginx-mode (use-package nginx-mode
:defer t) :defer t)