summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-12-14 13:31:29 +0000
committerMatthew Lemon <matt@matthewlemon.com>2022-12-14 13:31:29 +0000
commit51944f911dfef94c0f8a26013d0018aa170f7303 (patch)
tree18573c2b542f5bf560304edece57630c4a390a73 /init.el
parent2e69b71d0fef261803ffda3a67928eb50f489271 (diff)
adding a template for MOD journal files
Diffstat (limited to 'init.el')
-rw-r--r--init.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/init.el b/init.el
index cd94419..6e55052 100644
--- a/init.el
+++ b/init.el
@@ -356,9 +356,13 @@ Restart works only on graphic display."
(mapcar #'mrl/is-todays-journal? (directory-files journal-dir nil "_journal"))))))
(if today-journal
(find-file (concat journal-dir "/" today-journal))
- (denote
+ (if mrl/in-mod-denote ; this variable is from the .dir-locals.el file in the silo directory; we want to use a specific template
+ (denote
(format-time-string "%A %e %B %Y")
- '("journal") nil journal-dir))))
+ '("journal") nil journal-dir nil 'modjournal)
+ (denote
+ (format-time-string "%A %e %B %Y")
+ '("journal") nil journal-dir)))))
:bind (("C-c n n" . denote-create-note)
("C-c n d" . mrl/denote-journal)