[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Question: org-remember and level>1 target headline
From: |
Martin Pohlack |
Subject: |
[Orgmode] Question: org-remember and level>1 target headline |
Date: |
Mon, 10 May 2010 19:40:19 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9pre) Gecko/20100217 Shredder/3.0.3pre |
Hi all,
to practically prevent merge conflicts between the different machines
that I use I want to capture new items not directly under the global
"Inbox" headline, but under "Inbox/$HOSTNAME".
For example, I often capture new items on my desktop and my notebook
and later sync. The new items will always conflict as they are placed as
last child of "Inbox".
I now switched my org-remember templates from statically specifying
"Inbox" as target headline to a helper function:
----------------------------------------------------------------------
(defun my-host-name ()
"Returns the name of the current host minus the domain."
(let ((hostname (downcase (system-name))))
(save-match-data
(substring hostname (string-match "^[^.]+" hostname) (match-end 0)))))
(defun my-org-remember-headline ()
(concatenate 'string "Inbox/" (my-host-name)))
----------------------------------------------------------------------
The problem now is that I would like the target to be:
* Inbox
*** $HOSTNAME
***** new item
Instead, I get this:
* Inbox/$HOSTNAME
*** new items
My question now is how to specify the headline hierarchy here?
Cheers,
Martin
- [Orgmode] Question: org-remember and level>1 target headline,
Martin Pohlack <=
- Re: [Orgmode] Question: org-remember and level>1 target headline, Martin Pohlack, 2010/05/11
- Re: [Orgmode] Question: org-remember and level>1 target headline, Martin Pohlack, 2010/05/13
- Re: [Orgmode] Question: org-remember and level>1 target headline, Eric S Fraga, 2010/05/13
- Re: [Orgmode] Question: org-remember and level>1 target headline, Samuel Wales, 2010/05/13
- Re: [Orgmode] Question: org-remember and level>1 target headline, Carsten Dominik, 2010/05/15
- Re: [Orgmode] Question: org-remember and level>1 target headline, Martin Pohlack, 2010/05/18
- Re: [Orgmode] Question: org-remember and level>1 target headline [resent], Martin Pohlack, 2010/05/27