Fix invalid-file-location when capturing to todo template #296

This commit is contained in:
Henrik Lissner 2017-12-24 15:08:00 -05:00
parent 79f3f5dbb0
commit 208fbb1726
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -10,16 +10,19 @@
;; anywhere I can call org-capture (whether or not Emacs is open/running),
;; like, say, from qutebrowser, vimperator, dmenu or a global keybinding.
(defvar +org-default-todo-file "todo.org"
"TODO")
(defvar +org-default-notes-file "notes.org"
"TODO")
(defvar org-capture-templates
'(("t" "Todo" entry
(file+headline (expand-file-name "todo.org" +org-dir) "Inbox")
(file+headline +org-default-todo-file "Inbox")
"* [ ] %?\n%i" :prepend t :kill-buffer t)
("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)))