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?
This commit is contained in:
Daniel - 2020-01-05 12:24:01 +01:00
parent 5627da7b42
commit 7e7f8b3e13
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 8 additions and 4 deletions

12
init.el
View File

@ -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."