From 1f2a3e70d4539e0593cefca08c9b46969c59f627 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 5 Jan 2020 12:17:50 +0100 Subject: [PATCH] Fix customize types for special org agenda files --- init.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index 392ed96..e47a977 100644 --- a/init.el +++ b/init.el @@ -961,31 +961,31 @@ With given ARG, display files in `db/important-document-path’." (defcustom db/org-default-work-file nil "Path to default org-mode file at work." :group 'personal-settings - :type 'string + :type '(choice (const nil) file) :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 'string + :type '(choice (const nil) file) :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 'string + :type '(choice (const nil) file) :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 'string + :type '(choice (const nil) file) :set #'db/update-org-agenda-files) (defcustom db/org-default-pensieve-file nil "Path to default org-mode file for private notes." :group 'personal-settings - :type 'string + :type '(choice (const nil) file) ;; no custom setter, as the pensive file is usually not part of ;; `org-agenda-files’ )