[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] file+olp problem in org-capture.
From: |
Erik Iverson |
Subject: |
Re: [Orgmode] file+olp problem in org-capture. |
Date: |
Tue, 24 Aug 2010 07:58:10 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 |
Tim,
I ran into the exact same issue yesterday, in fact, our
examples are almost identical!
Here is the reply I received from David.
http://www.mail-archive.com/address@hidden/msg29029.html
I didn't tried his solution yet, but it should work.
On 08/24/2010 03:16 AM, Tim O'Callaghan wrote:
Hi,
first, am i right i assuming that the file+olp is designed so that i
can specify the top of a tree, and the headings in the tree i want to
be able to capture to?
That is what i am trying to do with the "1" option. It does not
evaluate the concat operation and so fails.
;; constant used in lots of other things.
(defconst toc:ze-org-dir "~/org/")
;; example org template
(setq org-capture-templates
'(
;; works
;; (file+headline "path/to/file" "node headline")
("0" "0+inbox" entry
(file+headline (concat toc:ze-org-dir "0+inbox.org")
"+INBOX") "* %? \n")
;; does not work
;; (file+olp "path/to/file" "Level 1 heading" "Level 2" ...)
("1" "1+projects" entry
(file+olp (concat toc:ze-org-dir "1+projects.org") "+TASKS"
"+PROJECTS")
"* ")))
Tim.
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode