mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Fix Org capture file targets
This commit is contained in:
@@ -6,6 +6,12 @@
|
|||||||
;; Setting default directory for Org files.
|
;; Setting default directory for Org files.
|
||||||
(setq org-directory "~/Org")
|
(setq org-directory "~/Org")
|
||||||
|
|
||||||
|
(defvar org-notes-file (expand-file-name "notes.org" org-directory)
|
||||||
|
"Default Org notes file.")
|
||||||
|
|
||||||
|
(defvar org-calendar-file (expand-file-name "calendar.org" org-directory)
|
||||||
|
"Default Org calendar file.")
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:init
|
:init
|
||||||
(setq org-clock-mode-line-total 'today
|
(setq org-clock-mode-line-total 'today
|
||||||
@@ -30,10 +36,10 @@
|
|||||||
(file org-default-notes-file)
|
(file org-default-notes-file)
|
||||||
"* 🆕 %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
|
"* 🆕 %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
|
||||||
("n" "Note" entry
|
("n" "Note" entry
|
||||||
(file (expand-file-name "notes.org" org-directory))
|
(file org-notes-file)
|
||||||
"* %U %?\n")
|
"* %U %?\n")
|
||||||
("e" "Event" entry
|
("e" "Event" entry
|
||||||
(file (expand-file-name "calendar.org" org-directory))
|
(file org-calendar-file)
|
||||||
"* %?\nSCHEDULED: %^T\n")))
|
"* %?\nSCHEDULED: %^T\n")))
|
||||||
:config
|
:config
|
||||||
(add-hook 'org-mode-hook 'org-indent-mode))
|
(add-hook 'org-mode-hook 'org-indent-mode))
|
||||||
|
|||||||
Reference in New Issue
Block a user