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
1 changed files with 5 additions and 2 deletions

View File

@ -109,7 +109,10 @@
(use-package midnight
:config
(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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -422,7 +425,7 @@
:defer t
:mode
(("/cron\\.d/" . crontab-mode))
("/etc/crontab\\'" . crontab-mode))
("\\`'/etc/crontab\\'" . crontab-mode))
(use-package nginx-mode
:defer t)