-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit_org-journal.el
41 lines (34 loc) · 1.23 KB
/
init_org-journal.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
;;; init_org-journal.el --- Daily Journal Extension for Org Mode
;; ==============================================================================
;; Org-Journal Set Up
;; ==============================================================================
;; Written by Jeff Russell
;; Updated: 2020-08-16 2017
;; jpowellrussell.com
;; ------------------------------------------------------------------------------
;;; Commentary:
;; Daily journaling plugin for Org-Mode, apparently pairs well with Org-Roam
;;; Code:
(defun jpr-id-for-new-journal ()
"Create an ID for a newly created org-journal file."
(save-excursion
(widen)
(goto-char (point-min))
(org-id-get-create)))
(use-package org-journal
:straight t
:ensure t
:defer t
:bind
("C-c n j" . org-journal-new-entry)
:init
(add-hook 'org-journal-after-entry-create-hook 'jpr-id-for-new-journal)
; Change default prefix key; needs to be set before loading org-journal
(setq org-journal-prefix-key "C-c j ")
:custom
(org-journal-date-prefix "#+title: ")
(org-journal-file-format "%Y-%m-%d.org")
(org-journal-dir "~/dropbox/KHS/daily_leaves/")
(org-journal-date-format "%A, %Y-%m-%d"))
(provide 'init_org-journal)
;;; init_org-journal.el ends here