* Using capture to add plain text under a headline
@ 2010-10-27 10:43 Axis
2010-10-27 14:16 ` Noorul Islam
0 siblings, 1 reply; 3+ messages in thread
From: Axis @ 2010-10-27 10:43 UTC (permalink / raw
To: emacs-orgmode
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?
Thanks,
Toby
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using capture to add plain text under a headline
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
0 siblings, 1 reply; 3+ messages in thread
From: Noorul Islam @ 2010-10-27 14:16 UTC (permalink / raw
To: Axis; +Cc: emacs-orgmode
On Wed, Oct 27, 2010 at 4:13 PM, Axis <axis@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using capture to add plain text under a headline
2010-10-27 14:16 ` Noorul Islam
@ 2010-10-28 11:45 ` Toby
0 siblings, 0 replies; 3+ messages in thread
From: Toby @ 2010-10-28 11:45 UTC (permalink / raw
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-28 12:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.