added paragraph explaining how to maintain links in silos

This update offers the user a means of maintaining the ability to
create denote links in files within sub-directories of a silo, by
suggesting replacing default-directory with an absolute path.
This commit is contained in:
Matthew Lemon 2022-12-19 11:29:41 +00:00 committed by Protesilaos Stavrou
parent 7c425a2d09
commit 743748b7bc
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -634,6 +634,24 @@ modes, we can do something like this:
(org-hide-leading-stars . t))))
#+end_src
IMPORTANT If your silo contains sub-directories of notes, you
should replace ~default-directory~ in the above examples with an
absolute path to your silo directory, otherwise links from files
within the sub-directories cannot be made to files in the parent
directory. For example:
#+begin_src emacs-lisp
;;; Directory Local Variables. For more information evaluate:
;;;
;;; (info "(emacs) Directory Variables")
((nil . ((denote-directory . "~/my-silo")
(denote-known-keywords . ("food" "drink"))
(denote-infer-keywords . nil)))
(org-mode . ((org-hide-emphasis-markers . t)
(org-hide-macro-markers . t)
(org-hide-leading-stars . t))))
#+end_src
As not all user options have a "safe" local value, Emacs will ask the
user to confirm their choice and to store it in the Custom code
snippet that is normally appended to init file (or added to the file