diff options
author | Tom Willemse | 2023-06-04 15:32:29 -0700 |
---|---|---|
committer | Tom Willemse | 2023-06-04 15:32:29 -0700 |
commit | df63b4d0025782d7fb11ede454d4ae8a3a164155 (patch) | |
tree | c2c443f4bf8f29b5791ea94d07c48c54d979ce43 /oni-org/oni-org.el | |
parent | c17ca639525c921216b78c0645fbfaeafd68753a (diff) | |
download | emacs-config-df63b4d0025782d7fb11ede454d4ae8a3a164155.tar.gz emacs-config-df63b4d0025782d7fb11ede454d4ae8a3a164155.zip |
[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.
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r-- | oni-org/oni-org.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 4915c85..0b10791 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -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) |