[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:
parent
c17ca63952
commit
df63b4d002
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue