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:
parent
5627da7b42
commit
7e7f8b3e13
12
init.el
12
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."
|
||||
|
|
Loading…
Reference in New Issue