doom: clean up custom paths with org-path function
This commit is contained in:
parent
0121c8c56f
commit
87e21e0241
|
@ -4,11 +4,9 @@
|
||||||
(setq user-full-name "Jonathan Jenne"
|
(setq user-full-name "Jonathan Jenne"
|
||||||
user-mail-address "johnnie@posteo.de")
|
user-mail-address "johnnie@posteo.de")
|
||||||
|
|
||||||
;; Paths and Filenames
|
;; Org Path
|
||||||
(setq +user-org-path "~/Notes/Org"
|
(setq +user-org-path "~/Notes/Org")
|
||||||
+user-org-todo-file "Todo.org"
|
(defun org-path (filename) (expand-file-name filename +user-org-path))
|
||||||
+user-org-notes-file "Notes.org"
|
|
||||||
+user-org-journal-file "Journal.org")
|
|
||||||
|
|
||||||
;; Default Shell
|
;; Default Shell
|
||||||
;; Useful if default system shell is not bash
|
;; Useful if default system shell is not bash
|
||||||
|
@ -34,9 +32,10 @@
|
||||||
org-src-tab-acts-natively t))
|
org-src-tab-acts-natively t))
|
||||||
|
|
||||||
;; Org Capture
|
;; Org Capture
|
||||||
(after! org (setq +org-capture-notes-file (expand-file-name +user-org-notes-file +user-org-path)
|
(after! org (setq +org-capture-notes-file (org-path "Notes.org")
|
||||||
+org-capture-todo-file (expand-file-name +user-org-todo-file +user-org-path)
|
+org-capture-todo-file (org-path "Todo.org")
|
||||||
+org-capture-journal-file (expand-file-name +user-org-journal-file +user-org-path)))
|
+org-capture-journal-file (org-path "Journal.org")
|
||||||
|
+org-capture-travel-journal-file (org-path "Travel.org")))
|
||||||
|
|
||||||
(after! org (setq org-capture-templates
|
(after! org (setq org-capture-templates
|
||||||
'(("t" "Personal todo" entry
|
'(("t" "Personal todo" entry
|
||||||
|
|
Loading…
Reference in New Issue