To create a Denote silo (a Denote directory other than the default) in a specific directory:
- Add a local variable at the root of the directory, that is, create a
.dir-locals.el
file with the following contents:
;;; Directory Local Variables. For more information evaluate:
;;;
;;; (info "(emacs) Directory Variables")
((nil . ((denote-directory . default-directory))))
Note
If the silo directory contains subdirectories, replace default-directory
in the above example with the absolute path to the silo directory. For example:
;;; Directory Local Variables. For more information evaluate:
;;;
;;; (info "(emacs) Directory Variables")
((nil . ((denote-directory . ~/studium))))```
See (Denote manual)[https://protesilaos.com/emacs/denote#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5]