File: midnight.el.html

To use the file, put (require 'midnight) into your .emacs. Then, at midnight, Emacs will run the normal hook midnight-hook. You can put whatever you like there, say, calendar; by default there is only one function there - clean-buffer-list. It will kill the buffers matching clean-buffer-list-kill-buffer-names and clean-buffer-list-kill-regexps and the buffers which where last displayed more than clean-buffer-list-delay-general days ago, keeping clean-buffer-list-kill-never-buffer-names and clean-buffer-list-kill-never-regexps.

Defined variables (12)

clean-buffer-list-delay-generalThe number of days before any buffer becomes eligible for autokilling.
clean-buffer-list-delay-specialThe number of seconds before some buffers become eligible for autokilling.
clean-buffer-list-kill-buffer-namesList of strings saying which buffers will be killed at midnight.
clean-buffer-list-kill-never-buffer-namesList of buffer names which will never be killed by ‘clean-buffer-list’.
clean-buffer-list-kill-never-regexpsList of regexp saying which buffers will never be killed at midnight.
clean-buffer-list-kill-regexpsList of regexps saying which buffers will be killed at midnight.
midnight-delayThe number of seconds after the midnight when the ‘midnight-timer’ is run.
midnight-hookThe hook run ‘midnight-delay’ seconds after midnight every day.
midnight-modeNon-nil if Midnight mode is enabled.
midnight-mode-hookHook run after entering or leaving ‘midnight-mode’.
midnight-periodThe number of seconds in a day--the delta for ‘midnight-timer’.
midnight-timerTimer running the ‘midnight-hook’ ‘midnight-delay’ seconds after midnight.

Defined functions (5)

clean-buffer-list()
clean-buffer-list-delay(NAME)
midnight-delay-set(SYMB TM)
midnight-mode(&optional ARG)
midnight-next()

Defined faces (0)