[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 3ef51e9cd7 064/355: Update documentation about d
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 3ef51e9cd7 064/355: Update documentation about denote-dired-mode |
Date: |
Sun, 26 Jun 2022 23:58:01 -0400 (EDT) |
branch: externals/denote
commit 3ef51e9cd73063c83051715cee0a26fc5bd03be7
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Update documentation about denote-dired-mode
---
README.org | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/README.org b/README.org
index fc37453f41..36d7a4135a 100644
--- a/README.org
+++ b/README.org
@@ -224,11 +224,38 @@ a listing of notes (i.e. in Dired). The
~denote-dired-mode~ can help
enhance this impression, by fontifying the components of the file name
to make the date (identifier) and keywords stand out.
+There are two ways to set the mode. Either use it for all directories,
+which probably is not needed:
+
#+begin_src emacs-lisp
(require 'denote-dired)
(add-hook 'dired-mode-hook #'denote-dired-mode)
#+end_src
+#+vindex: denote-dired-directories
+#+findex: denote-dired-mode-in-directories
+Or configure the user option ~denote-dired-directories~ and then set up
+the function ~denote-dired-mode-in-directories~:
+
+#+begin_src emacs-lisp
+(require 'denote-dired)
+
+;; We use different ways to specify a path for demo purposes.
+(setq denote-dired-directories
+ (list denote-directory
+ (thread-last denote-directory (expand-file-name "attachments"))
+ (expand-file-name "~/Documents/vlog")))
+
+(add-hook 'dired-mode-hook #'denote-dired-mode-in-directories)
+#+end_src
+
+The ~denote-dired-mode~ does not only fontify note files that were
+created by Denote: it covers every file name that follows our naming
+conventions ([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The file-naming
scheme]]). This is particularly useful for
+scenaria where, say, one wants to organise their collection of PDFs and
+multimedia in a systematic way (and, perhaps, use them as attachments
+for the notes Denote produces).
+
For the time being, the =diredfl= package is not compatible with this
facility.
@@ -341,8 +368,19 @@ Everything is in place to set up the package.
(require 'denote-link)
(require 'denote-dired)
+
+;; We use different ways to specify a path for demo purposes.
+(setq denote-dired-directories
+ (list denote-directory
+ (thread-last denote-directory (expand-file-name "attachments"))
+ (expand-file-name "~/Documents/vlog")))
+
+;; Generic
(add-hook 'dired-mode-hook #'denote-dired-mode)
+;; OR better:
+(add-hook 'dired-mode-hook #'denote-dired-mode-in-directories)
+
;; You can bind `denote' to a global key if you prefer not to use
;; `org-capture'. For example:
(define-key global-map (kbd "C-c n") #'denote)
- [elpa] externals/denote 9d8748c382 022/355: Add proof-of-concept backlink (lots of TODO), (continued)
- [elpa] externals/denote 9d8748c382 022/355: Add proof-of-concept backlink (lots of TODO), ELPA Syncer, 2022/06/26
- [elpa] externals/denote 991abe5b65 034/355: Use denote--file-empty-p, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 812da918f7 042/355: Insert comment about not editing backlinks, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 60a91fc6ef 044/355: Use correct notation for private variables, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 0185f38dde 046/355: Add denote-dired.el for useful fontification, ELPA Syncer, 2022/06/26
- [elpa] externals/denote f4f1fa3c48 041/355: Declare variables with defconst, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d0dbbab603 050/355: Update short descriptions, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 4d90cbb5da 054/355: Remove needless to-do, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 610c2f1670 055/355: Comment out inactive link to change log, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 3209bc23ef 059/355: Use "#+filetags" for wider Org compatibility, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 3ef51e9cd7 064/355: Update documentation about denote-dired-mode,
ELPA Syncer <=
- [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