From: Martin Pohlack <mp26@os.inf.tu-dresden.de>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Question: org-remember and level>1 target headline
Date: Mon, 10 May 2010 19:40:19 +0200 [thread overview]
Message-ID: <4BE84503.3020008@os.inf.tu-dresden.de> (raw)
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
next reply other threads:[~2010-05-10 17:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 17:40 Martin Pohlack [this message]
2010-05-11 9:18 ` Question: org-remember and level>1 target headline Martin Pohlack
2010-05-13 15:48 ` Martin Pohlack
2010-05-13 17:26 ` Eric S Fraga
2010-05-14 3:42 ` Samuel Wales
2010-05-15 6:42 ` Carsten Dominik
2010-05-18 17:39 ` Martin Pohlack
2010-05-27 9:43 ` Question: org-remember and level>1 target headline [resent] Martin Pohlack
2010-06-22 12:54 ` Carsten Dominik
2010-06-22 13:38 ` Martin Pohlack
2010-06-22 13:43 ` Carsten Dominik
2010-06-22 13:44 ` Martin Pohlack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BE84503.3020008@os.inf.tu-dresden.de \
--to=mp26@os.inf.tu-dresden.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.