From df63b4d0025782d7fb11ede454d4ae8a3a164155 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 4 Jun 2023 15:32:29 -0700 Subject: [PATCH] [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. --- oni-org/oni-org.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ;; 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)