* datetree+file broken?
@ 2011-01-03 22:55 Daniel E. Doherty
2011-01-04 9:08 ` Sébastien Vauban
0 siblings, 1 reply; 2+ messages in thread
From: Daniel E. Doherty @ 2011-01-03 22:55 UTC (permalink / raw)
To: Org-mode List
All,
I have the following templates defined for org-capture:
,----
| (setq org-capture-templates
| '(("t" "Todo Item" entry
| (file+headline org-default-notes-file "Tasks")
| "* TODO %? %^G\n %a")
| ("p" "Phone Call Log" entry
| (file+headline org-default-notes-file "Phone calls")
| "* %U Phone call with %:name %^G\n\n %?")
| ("i" "Invoice" entry
| (file+headline org-default-notes-file "Invoices")
| "* %^T %^G\n %?")
| ("j" "Journal Entry" entry
| (file+datetree (concat org-directory "Journal.org"))
| "* Entered on %U\n %i%?\n%a")))
`----
But when I hit 'j' at the capture dispatch and make an entry, it goes
into my defult notes file, Notes.org, rathern than Journal.org, like it
should.
Does anyone else get this?
--
====================================================
Daniel E. Doherty
7300 W. 110th Street, Suite 930
Overland Park, KS 66210
913.338.7182 (Phone)
913,338.7164 (FAX)
Up the airy mountain,
Down the rushy glen,
We daren't go a-hunting,
For fear of little men.
--- William Allingham (Donegal, Ireland)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: datetree+file broken?
2011-01-03 22:55 datetree+file broken? Daniel E. Doherty
@ 2011-01-04 9:08 ` Sébastien Vauban
0 siblings, 0 replies; 2+ messages in thread
From: Sébastien Vauban @ 2011-01-04 9:08 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Daniel E. Doherty,
Daniel E. Doherty wrote:
> All,
>
> I have the following templates defined for org-capture:
>
> ,----
> | (setq org-capture-templates
> | '(("t" "Todo Item" entry
> | (file+headline org-default-notes-file "Tasks")
> | "* TODO %? %^G\n %a")
> | ("p" "Phone Call Log" entry
> | (file+headline org-default-notes-file "Phone calls")
> | "* %U Phone call with %:name %^G\n\n %?")
> | ("i" "Invoice" entry
> | (file+headline org-default-notes-file "Invoices")
> | "* %^T %^G\n %?")
> | ("j" "Journal Entry" entry
> | (file+datetree (concat org-directory "Journal.org"))
> | "* Entered on %U\n %i%?\n%a")))
> `----
Use backquotes and commas:
#+begin_src emacs-lisp
(setq org-capture-templates
`(("j" "Journal Entry" entry
(file+datetree ,(concat org-directory "Journal.org"))
"* Entered on %U\n %i%?\n%a")))
#+end_src
Best regards,
Seb
--
Sébastien Vauban
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-04 9:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-03 22:55 datetree+file broken? Daniel E. Doherty
2011-01-04 9:08 ` Sébastien Vauban
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).