diff options
-rw-r--r-- | config.org | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config.org b/config.org index 6bf88bb..84e4561 100644 --- a/config.org +++ b/config.org | |||
@@ -321,6 +321,30 @@ someday. | |||
321 | (define-key acdw/map (kbd "C-x k") #'kill-a-buffer) | 321 | (define-key acdw/map (kbd "C-x k") #'kill-a-buffer) |
322 | #+end_src | 322 | #+end_src |
323 | 323 | ||
324 | *** Kill old buffers after a while | ||
325 | |||
326 | Adapted from =midnight-mode=, using suggestions from [[https://old.reddit.com/r/emacs/comments/l6jpxf/how_do_emacs_users_usually_have_multiple_files/gl2249u/][u/ndamee]]. | ||
327 | |||
328 | #+begin_src emacs-lisp :noweb-ref packages | ||
329 | (require 'midnight) | ||
330 | #+end_src | ||
331 | |||
332 | What time I run the clean up is a little tricky for me, since I use | ||
333 | Emacs at work /and/ at home, and all at different times. However, I | ||
334 | realized that since I close out of Emacs at work pretty much every | ||
335 | day, I don't need to worry about too many buffers there -- so I just | ||
336 | have =clean-buffer-list= run at 8:00 PM. | ||
337 | |||
338 | #+begin_src emacs-lisp :noweb-ref settings | ||
339 | (setq-default acdw/clean-buffer-list-timer | ||
340 | (run-at-time "20:00" 86400 #'clean-buffer-list) | ||
341 | clean-buffer-list-delay-general 5 | ||
342 | clean-buffer-list-delay-special (* 7 24 60 60)) | ||
343 | |||
344 | (add-to-list 'clean-buffer-list-kill-buffer-names "*Completions*") | ||
345 | (add-to-list 'clean-buffer-list-kill-buffer-names "*Calendar*") | ||
346 | #+end_src | ||
347 | |||
324 | ** Cursor | 348 | ** Cursor |
325 | 349 | ||
326 | *** Cursor shape | 350 | *** Cursor shape |