Commit 16a839fbec2d

Vincent Demeester <vincent@sbr.pm>
2020-06-11 15:19:23
tools/emacs: add org-journal…
… and use `{file}.private.org` for private notes. This means I'll be able to join notes and technical into one. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent ec9b81c
Changed files (2)
tools
emacs
users
vincent
tools/emacs/config/config-org.el
@@ -638,9 +638,19 @@ With prefix argument, also display headlines without a TODO keyword."
            :unnarrowed t)
           ("p" "private" plain (function org-roam--capture-get-point)
            "%?"
-           :file-name "private-${slug}"
+           :file-name "${slug}.private"
            :head "#+TITLE: ${title}\n"
-           :unnarrowed t)))
+           :unnarrowed t))))
+
+(use-package org-journal
+  :bind
+  ("C-c n j" . org-journal-new-entry)
+  :custom
+  (org-journal-date-prefix "#+TITLE: ")
+  (org-journal-file-format "%Y-%m-%d.private.org")
+  (org-journal-dir org-default-technical-dir)
+  (org-journal-date-format "%A, %d %B %Y")
+  (org-journal-enable-agenda-integration t))
 
 
 (provide 'config-org)
users/vincent/dev/emacs.nix
@@ -82,6 +82,7 @@ in
       org-plus-contrib
       org-capture-pop-frame
       org-gcal
+      org-journal
       org-ql
       org-ref
       org-roam