Add calendar file.
This commit is contained in:
parent
12d04ef7ba
commit
1e13c0c919
5
init.el
5
init.el
@ -622,9 +622,12 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
(defvar org-habits-file "~/org/habits.org"))
|
(defvar org-habits-file "~/org/habits.org"))
|
||||||
(unless (boundp 'org-capture-templates)
|
(unless (boundp 'org-capture-templates)
|
||||||
(defvar org-capture-templates nil))
|
(defvar org-capture-templates nil))
|
||||||
|
(unless (boundp 'org-calendar-file)
|
||||||
|
(defvar org-calendar-file "~/org/calendar.org"))
|
||||||
(setq org-agenda-files
|
(setq org-agenda-files
|
||||||
(--filter (file-exists-p it)
|
(--filter (file-exists-p it)
|
||||||
(list org-gtd-file org-habits-file org-projectile:projects-file)))
|
(list org-gtd-file org-habits-file org-projectile:projects-file
|
||||||
|
org-calendar-file)))
|
||||||
|
|
||||||
(add-to-list 'org-capture-templates
|
(add-to-list 'org-capture-templates
|
||||||
`("h" "Habit" entry (file+headline ,org-habits-file "Habits")
|
`("h" "Habit" entry (file+headline ,org-habits-file "Habits")
|
||||||
|
Loading…
Reference in New Issue
Block a user