summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-07-25 08:39:18 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-07-25 08:39:18 -0700
commit2b264956597e1a6b3c927e011d9cd9712b3f47ea (patch)
treec69623de3a4e13c83c0ce8296fd4720bfbe5c31f
parent[emacs] set the path to pants correctly. (diff)
downloademacs.d-2b264956597e1a6b3c927e011d9cd9712b3f47ea.tar.gz
[emacs] add midnight mode to clean up buffers
-rw-r--r--emacs.d/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 2148683..32892f1 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -316,6 +316,9 @@ Return the new window for BUFFER."
                (set-buffer-modified-p nil)
                (message "File '%s' successfully renamed to '%s'" name (file-name-nondirectory new-name))))))))
 
+;; clean up buffers once in a while
+(require 'midnight)
+
 ;; start the server if not already running
 (require 'server)
 (unless (server-running-p)