mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Alias +org-default-notes-file to org-default-notes-file
This commit is contained in:
@ -15,8 +15,7 @@
|
|||||||
(defvar +org-default-todo-file "todo.org"
|
(defvar +org-default-todo-file "todo.org"
|
||||||
"TODO")
|
"TODO")
|
||||||
|
|
||||||
(defvar +org-default-notes-file "notes.org"
|
(defvaralias '+org-default-notes-file 'org-default-notes-file)
|
||||||
"TODO")
|
|
||||||
|
|
||||||
(defvar org-capture-templates
|
(defvar org-capture-templates
|
||||||
'(("t" "Todo" entry
|
'(("t" "Todo" entry
|
||||||
@ -24,12 +23,13 @@
|
|||||||
"* [ ] %?\n%i" :prepend t :kill-buffer t)
|
"* [ ] %?\n%i" :prepend t :kill-buffer t)
|
||||||
|
|
||||||
("n" "Notes" entry
|
("n" "Notes" entry
|
||||||
(file+headline +org-default-notes-file "Inbox")
|
(file+headline org-default-notes-file "Inbox")
|
||||||
"* %u %?\n%i" :prepend t :kill-buffer t)))
|
"* %u %?\n%i" :prepend t :kill-buffer t)))
|
||||||
|
|
||||||
|
;;
|
||||||
(defun +org|init-capture ()
|
(defun +org|init-capture ()
|
||||||
(setq org-default-notes-file (expand-file-name +org-default-notes-file org-directory)
|
(setq org-default-notes-file (expand-file-name org-default-notes-file org-directory)
|
||||||
+org-default-todo-file (expand-file-name +org-default-todo-file org-directory))
|
+org-default-todo-file (expand-file-name +org-default-todo-file org-directory))
|
||||||
|
|
||||||
(add-hook 'org-capture-after-finalize-hook #'+org-capture|cleanup-frame)
|
(add-hook 'org-capture-after-finalize-hook #'+org-capture|cleanup-frame)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user