Enable midnight-mode

Right now it only closes some old buffers.  Maybe i’ll add more stuff later.
This commit is contained in:
Gergely Polonkai 2018-10-26 18:24:49 +02:00
parent 280f1168b5
commit 62d9228650

View File

@ -1338,6 +1338,20 @@ The cookies are from the Hungarian version an ancient MS-DOS based program calle
:commands (goto-address-prog-mode goto-address-mode)) :commands (goto-address-prog-mode goto-address-mode))
#+END_SRC #+END_SRC
** Do things at midnight
By default, it closes a bunch of unused buffers. I might add some more things there later.
#+BEGIN_SRC emacs-lisp
(use-package midnight
:ensure nil
:config
(setq clean-buffer-list-kill-never-buffer-names '("*scratch*"
"*Messages*"
"*dashboard*"))
(midnight-mode t))
#+END_SRC
* ~use-package~ packages * ~use-package~ packages
** Automatically upgrade packages every week ** Automatically upgrade packages every week
@ -3025,6 +3039,7 @@ directory. It is available from [[http://plantuml.com/download][here]].
(define-key 'help-command (kbd "C-k") 'find-function-on-key) (define-key 'help-command (kbd "C-k") 'find-function-on-key)
(define-key 'help-command (kbd "C-v") 'find-variable) (define-key 'help-command (kbd "C-v") 'find-variable)
#+END_SRC #+END_SRC
* And finally, server mode * And finally, server mode
Sometimes i start an ~emacsclient~ process, like for editing a commit message or something Sometimes i start an ~emacsclient~ process, like for editing a commit message or something