From 601935c856756c3c8acb8816a3832e952ddc7391 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 26 Oct 2022 23:35:48 -0700 Subject: [oni-org] Fix exclusion of ‘journal.org’ --- oni-org/oni-org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oni-org/oni-org.el') 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 -- cgit v1.2.3-54-g00ecf