about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org24
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
326Adapted 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
332What time I run the clean up is a little tricky for me, since I use
333Emacs at work /and/ at home, and all at different times. However, I
334realized that since I close out of Emacs at work pretty much every
335day, I don't need to worry about too many buffers there -- so I just
336have =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