Reputation: 77
I am using GNU Emacs 23.1.1 with org-mode version 7.7
I want to use C-c c
t to capture a task and send it to ~/todo.org
as defined in the org-capture-template
below. On pressing C-c c
, the Org Select
buffer opens but when I hit t
, I get the error message Capture abort: (void-function nil)
and nothing gets written to todo.org
. The relevant lines from my .emacs
are shown below. Please help me fix this.
(define-key global-map "\C-cc" 'org-capture)
(setq org-directory "~/")
(setq org-capture-templates
(("t" "Todo" entry (file+headline "~/todo.org" "Tasks")
"* TODO %?\n %i\n %a")
("j" "Journal" entry (file+datetree "~/journal.org")
"* %?\nEntered on %U\n %i\n %a")))
Upvotes: 3
Views: 2431
Reputation: 7884
You need to quote your list of capture templates. If you change the relevant section as follows it should work.
(setq org-capture-templates
(quote
(("t" "TODO" entry
[...]
"* %?\nEntered on %U\n %i\n %a"))))
Make sure you remember to include the closing )
at the end or you'll end up with unbalanced parentheses.
Upvotes: 3