1
0
Fork 0

[oni-org] Use a new archive file for each year

This way archives don't keep growing indefinitely and opening the archive
doesn't load every single language I've ever used because there are code blocks
in there.
This commit is contained in:
Tom Willemse 2023-06-04 15:32:29 -07:00
parent c17ca63952
commit df63b4d002

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2023.0602.000455
;; Version: 2023.0604.153139
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table)
;; This program is free software; you can redistribute it and/or modify
@ -377,6 +377,10 @@ _di_: Add inlineimages STARTUP
(defalias 'org-dblock-write:oni-backlinks 'oni-org-dblock-write-backlinks)
;; Create a new archive for each year. This way archives don't keep growing
;; indefinitely and opening the archive doesn't load every single language I've
;; ever used because there are code blocks in there.
(setq org-archive-location (format-time-string "%%s_archive_%Y::"))
(setq org-catch-invisible-edits 'error)
(setq org-clock-in-switch-to-state #'oni-org-maybe-change-todo-state)
(setq org-extend-today-until 2)