summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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