Reset denote-journal dir after denote dir to ensure correct value
The default value of `denote-journal-extras-directory` derives from the default value of `denote-directory`. Since I change this default value for myself, I need to also change the `denote-journal-extras-directory` (or more the require after my `denote-directory` variable is defined). Redefining it is fine with me.
This commit is contained in:
parent
29f4ee111b
commit
7bbdbe5ecc
2 changed files with 4 additions and 2 deletions
|
@ -5712,7 +5712,8 @@ Prot is the developer and maintainer of this package.
|
|||
;; Remember to check the doc strings of those variables.
|
||||
(let ((dir (string-trim (shell-command-to-string "echo $DENOTE_DIRECTORY"))))
|
||||
(when (not (string-empty-p dir))
|
||||
(setq denote-directory (expand-file-name dir))))
|
||||
(setq denote-directory (expand-file-name dir))
|
||||
(setq denote-journal-extras-directory (expand-file-name "journal" denote-directory))))
|
||||
(setq denote-infer-keywords t)
|
||||
(setq denote-sort-keywords t)
|
||||
(setq denote-excluded-directories-regexp "data") ; external data related to headings is stored in these directories (web archives)
|
||||
|
|
|
@ -72,7 +72,8 @@
|
|||
;; Remember to check the doc strings of those variables.
|
||||
(let ((dir (string-trim (shell-command-to-string "echo $DENOTE_DIRECTORY"))))
|
||||
(when (not (string-empty-p dir))
|
||||
(setq denote-directory (expand-file-name dir))))
|
||||
(setq denote-directory (expand-file-name dir))
|
||||
(setq denote-journal-extras-directory (expand-file-name "journal" denote-directory))))
|
||||
(setq denote-infer-keywords t)
|
||||
(setq denote-sort-keywords t)
|
||||
(setq denote-excluded-directories-regexp "data") ; external data related to headings is stored in these directories (web archives)
|
||||
|
|
Loading…
Reference in a new issue