[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 86e437da43 150/355: Document .dir-locals.el for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 86e437da43 150/355: Document .dir-locals.el for multi-type notes |
Date: |
Sun, 26 Jun 2022 23:58:16 -0400 (EDT) |
branch: externals/denote
commit 86e437da4333ed587141dd6486c81de34aedbfe2
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Document .dir-locals.el for multi-type notes
---
README.org | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/README.org b/README.org
index 0b6989b37f..5fafbef28e 100644
--- a/README.org
+++ b/README.org
@@ -691,6 +691,23 @@ notes in =~/blog/=
([[#h:337f9cf0-9f66-45af-b73f-f6370472fb51][Fontification in
Given Denote's composable code, you can tweak the output however you
like ([[#h:f69371d5-1843-493d-9ff5-c1ab3b43024e][Tweaking the front matter]]).
+If you do place different types of notes in their own directories,
+consider introducing directory-local variables to keep things working
+seamlessly. An obvious candidate for such a local variable is the
+~denote-directory~: you want notes in =~/blog/= to treat their directory
+as the canonical one; while those in =~/Documents/notes/= to do the same
+for that path. Write a =.dir-locals.el= file with the following
+contents and place it in each of those directories:
+
+#+begin_src emacs-lisp
+;;; Directory Local Variables
+;;; For more information see (info "(emacs) Directory Variables")
+
+((nil . ((denote-directory . (expand-file-name default-directory)))))
+#+end_src
+
+This will allow things to work smoothly (e.g. ~denote-infer-keywords~).
+
Have more ideas? Something does not work quite right? Areas you wish
were more abstract in the code? Please participate in the development
process.
- [elpa] externals/denote 52fd454153 069/355: Document denote-sort-keywords, (continued)
- [elpa] externals/denote 52fd454153 069/355: Document denote-sort-keywords, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 2eeedaf86a 075/355: Placate the compiler about 'denote-directory', ELPA Syncer, 2022/06/26
- [elpa] externals/denote eafc777268 076/355: Use 'denote-directory' function for '#+link', ELPA Syncer, 2022/06/26
- [elpa] externals/denote d08a72e19a 081/355: Re-indent line, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 5dace99b8d 085/355: Acknowledge Kaushal Modi for commit f97f1f8, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 85e33cb523 107/355: Remove needless single quotes, ELPA Syncer, 2022/06/26
- [elpa] externals/denote ba7299d878 088/355: Add TODO about styling 'denote-link' command, ELPA Syncer, 2022/06/26
- [elpa] externals/denote f9b86149fc 102/355: Rephrase package overview, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d8b2903fa9 077/355: Acknowledge Jack Baty for commit dfc3a8f, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 142b628c2e 127/355: Apply distinct face to keyword delimiter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 86e437da43 150/355: Document .dir-locals.el for multi-type notes,
ELPA Syncer <=
- [elpa] externals/denote e92137a548 148/355: Use file attribute for mod time while renaming, ELPA Syncer, 2022/06/27
- [elpa] externals/denote c9926a528e 133/355: perf: Stop searching for the title or identifier after the 1st match, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f55dee06b1 143/355: Add documentation about our minibuffer histories, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 97e8c30bcf 153/355: Rewrite the package Overview, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 171b873cb5 142/355: Require denote-retrieve (0e83bee) in denote-link, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 6a286c97f8 154/355: Rephrase statement for clarity, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0e83bee5b7 141/355: Add denote-retrieve for internal purposes, ELPA Syncer, 2022/06/27
- [elpa] externals/denote b42f68c8e8 156/355: Add denote-type command, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e841a51ca7 155/355: Fix typo, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bc93a8ecda 137/355: Update the manual on the matter of backlinks, ELPA Syncer, 2022/06/27