From 62d9228650983830cd5e60d0b917d642ece0cc4d Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 26 Oct 2018 18:24:49 +0200 Subject: [PATCH] Enable midnight-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Right now it only closes some old buffers. Maybe i’ll add more stuff later. --- configuration.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configuration.org b/configuration.org index 984b6e6..71c186d 100644 --- a/configuration.org +++ b/configuration.org @@ -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)) #+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 ** 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-v") 'find-variable) #+END_SRC + * And finally, server mode Sometimes i start an ~emacsclient~ process, like for editing a commit message or something