From 7e7f8b3e132e2531818e9bc4020188de1b8689c3 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 5 Jan 2020 12:24:01 +0100 Subject: [PATCH] Disable custom setter for special agenda files for now It is no good to update `org-agenda-files' when setting those variables, only to be overwritten by customize itself latter on. Maybe it's better to instead have a custom setter that updates the variable, but also checks whether the file is also contained in `org-agenda-files', warning the user if this is not the case? --- init.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index e47a977..36ae1c8 100644 --- a/init.el +++ b/init.el @@ -962,25 +962,29 @@ With given ARG, display files in `db/important-document-path’." "Path to default org-mode file at work." :group 'personal-settings :type '(choice (const nil) file) - :set #'db/update-org-agenda-files) + ;; :set #'db/update-org-agenda-files + ) (defcustom db/org-default-home-file nil "Path to default org-mode file at home." :group 'personal-settings :type '(choice (const nil) file) - :set #'db/update-org-agenda-files) + ;; :set #'db/update-org-agenda-files + ) (defcustom db/org-default-notes-file nil "Path to default org-mode file for notes." :group 'personal-settings :type '(choice (const nil) file) - :set #'db/update-org-agenda-files) + ;; :set #'db/update-org-agenda-files + ) (defcustom db/org-default-refile-file nil "Path to default org-mode file for capturing." :group 'personal-settings :type '(choice (const nil) file) - :set #'db/update-org-agenda-files) + ;; :set #'db/update-org-agenda-files + ) (defcustom db/org-default-pensieve-file nil "Path to default org-mode file for private notes."