diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index fc1f1f0..f5c883a 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.1025.230035 +;; Version: 2022.1026.162123 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti form-feed) ;; This program is free software; you can redistribute it and/or modify @@ -477,7 +477,7 @@ also move point to the start of the heading." (defun oni-org-update-all-dblocks-live () "Call ‘org-update-all-dblocks’ if the current file isn't an archive file." (if (not (or (string-suffix-p "_archive" (buffer-file-name)) - (string= "journal.org" (buffer-file-name)))) + (string= "journal.org" (file-name-nondirectory (buffer-file-name))))) (org-update-all-dblocks))) (setq org-todo-keywords