Re-arranged midnight block, added FIXME.

This commit is contained in:
tastytea 2019-03-27 11:16:43 +01:00
parent 0cebad415f
commit fbae6ab684
2 changed files with 7 additions and 5 deletions

10
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-03-27 09:46:04 CET>
;;; Time-stamp: <2019-03-27 11:16:38 CET>
;;; Commentary:
;;; I am using this file with Emacs 26, but most of it will probably work with
@ -545,15 +545,17 @@
;; Delete old buffers.
;; https://www.emacswiki.org/emacs/CleanBufferList
(use-package midnight
:defer 5
:init
(setq midnight-delay 0) ; 0 seconds after "midnight"
(setq midnight-period (* 1 60 60)) ; Clean every 1 hours.
(setq midnight-delay 0 ; 0 seconds after "midnight"
midnight-period (* 1 60 60)) ; Clean every 1 hours.
;; FIXME: midnight-period has no or not the desired effect.
:custom
(clean-buffer-list-delay-general 1) ; Clean normal bufs after 1d.
(clean-buffer-list-delay-special (* 30 60)) ; Clean special bufs after 30m.
:config
(setq clean-buffer-list-kill-regexps ; Add these to special buffers.
(nconc clean-buffer-list-kill-regexps
(nconc clean-buffer-list-kill-regexps
'("\\`magit-?.*:"
"\\.log\\'")))
(midnight-mode t))

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 20494
127.0.0.1:51313 27494
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh