diff --git a/init.el b/init.el index 8e3a989..f2279f5 100644 --- a/init.el +++ b/init.el @@ -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)