Commit 9bc2496ec27b

Vincent Demeester <vincent@sbr.pm>
2017-06-24 12:35:03
Update org-capture journal entry 👼
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 6b7db1f
Changed files (2)
.emacs.d/emacs.el
@@ -909,16 +909,16 @@ point reaches the beginning or end of the buffer, stop there."
     (apply 'format text fmtvars)))
 
 (setq org-capture-templates
-      '(;; other entries
+   '(;; other entries
         ("t" "Inbox list item" entry
          (file+headline (expand-file-name org-main-file org-todos-directory) "Inbox")
          "* TODO %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n")
         ("d" "Docker task" entry
          (file+headline (expand-file-name org-main-file org-todos-directory) "Tasks")
          "* TODO gh:docker/%(oc/prmt \"project\" 'd-prj)#%(oc/prmt \"issue/pr\" 'd-issue) %?%(oc/inc \"feature content\" \" [/]\n- [ ] Implementation\n- [ ] Tests\n- [ ] Docs\")")
-        ("j" "Journal entry" entry
-         (file+datetree+prompt (expand-file-name org-journal-file org-root-directory))
-         "- %?\n%a\n%i\n")
+        ("j" "Journal entry"
+         entry (file+datetree+prompt (expand-file-name org-journal-file org-root-directory))
+         "* %?\n%U\%i\n%a" :empty-lines 1)
         ;; other entries
         ))
 
.emacs.d/emacs.org
@@ -1783,16 +1783,16 @@
 
    #+BEGIN_SRC emacs-lisp
      (setq org-capture-templates
-           '(;; other entries
+        '(;; other entries
              ("t" "Inbox list item" entry
               (file+headline (expand-file-name org-main-file org-todos-directory) "Inbox")
               "* TODO %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n")
              ("d" "Docker task" entry
               (file+headline (expand-file-name org-main-file org-todos-directory) "Tasks")
               "* TODO gh:docker/%(oc/prmt \"project\" 'd-prj)#%(oc/prmt \"issue/pr\" 'd-issue) %?%(oc/inc \"feature content\" \" [/]\n- [ ] Implementation\n- [ ] Tests\n- [ ] Docs\")")
-             ("j" "Journal entry" entry
-              (file+datetree+prompt (expand-file-name org-journal-file org-root-directory))
-              "- %?\n%a\n%i\n")
+             ("j" "Journal entry"
+              entry (file+datetree+prompt (expand-file-name org-journal-file org-root-directory))
+              "* %?\n%U\%i\n%a" :empty-lines 1)
              ;; other entries
              ))
    #+END_SRC