From: Toby <axis@gmx.ch>
To: emacs-orgmode@gnu.org
Subject: Re: Using capture to add plain text under a headline
Date: Thu, 28 Oct 2010 11:45:19 +0000 (UTC) [thread overview]
Message-ID: <loom.20101028T134038-749@post.gmane.org> (raw)
In-Reply-To: AANLkTi=_6AWCyMROsbjkzbnahKySHkm_WYo3ixOxD+vW@mail.gmail.com
Noorul Islam <noorul <at> noorul.com> writes:
>
> On Wed, Oct 27, 2010 at 4:13 PM, Axis <axis <at> gmx.ch> wrote:
> > Hello,
> >
> > I'm having a struggle capturing a plain text item under a headline; it
> > always gets added to the bottom of the file. List items or org entries can
> > be stowed away properly without a problem, i.e.
> >
> > ("e" "Event" entry (file+headline "~/org/agenda.org" "Events") "* %? %^T")
> >
> > works but
> >
> > ("b" "Birthdays" plain (file+headline "~/org/agenda.org" "Birthdays")
> > "%\\%(diary-anniversary %? mm dd yy) turns %d")
> >
> > doesn't.
> >
> > Any clues as to what might go wrong here or how else I could add a line of
> > plain text to a headline?
> >
>
> I am not able to understand what you are trying to convey. Can you
> provide some examples?
>
> Thanks and Regards
> Noorul
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
Hi Noorul,
thanks for your quick reply. The lines of init.el code were actually meant to be
examples. I have been trying to set up templates for the new org-capture
function. I keep an agenda file with different headlines for events, birthdays
etc. What I now would like to do is add birthdays using the capture mechanism as
sexp-lines under the birthdays-headline of this agenda file. For events I don't
use sexp entries but regular org-entries with a timestamp, which are filed away
under the correct heading without a hitch. If I try to do the same with my sexp
lines, - e.g. %\\%(diary-anniversary 10 2 1869) Mahatma Gandhi would be %d
years old - (which apparently cannot be added as org entries in order to be
still recognized as sexp expressions but have to be added as plain text), they
always end up at the end of the file, rather than at the end of the headline.
Hope this made things a little more clear. I'm currently using org-mode 7.01h on
a windows machine by the way.
Thanks,
Toby
prev parent reply other threads:[~2010-10-28 12:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 10:43 Using capture to add plain text under a headline Axis
2010-10-27 14:16 ` Noorul Islam
2010-10-28 11:45 ` Toby [this message]
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=loom.20101028T134038-749@post.gmane.org \
--to=axis@gmx.ch \
--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.