summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-01-02 14:44:03 -0500
committerKyle Meyer <kyle@kyleam.com>2024-01-22 00:02:53 -0500
commit41c010aece26def1e6053c6198719640f98c1a20 (patch)
tree6ab87bf0591ed4e6f90ccd9f79110f93666bc633
parentb84bc7bbda42a47d787a5ebf47275157185c9cbe (diff)
downloademacs.d-41c010aece26def1e6053c6198719640f98c1a20.tar.gz
denote: Wire up denote-dired-mode-in-directories
-rw-r--r--init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.el b/init.el
index cd2bc4a..a4a482f 100644
--- a/init.el
+++ b/init.el
@@ -1722,7 +1722,11 @@
("C-c d f" . km/find-file-with-denote-naming))
:config
(setq denote-directory (expand-file-name "~/notes"))
- (setq denote-file-type 'text))
+ (setq denote-dired-directories (list denote-directory))
+ (setq denote-file-type 'text)
+
+ (with-eval-after-load 'dired
+ (add-hook 'dired-mode-hook #'denote-dired-mode-in-directories)))
;;; Language modes