From: Tassilo Horn <tassilo@member.fsf.org>
To: Manish <mailtomanish.sharma@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-remember items are stored to the wrong headline
Date: Wed, 27 Aug 2008 12:24:55 +0200 [thread overview]
Message-ID: <87ej4a7o20.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <e7cdbe30808270252p2393cdb3q6a40c46a8b78803b@mail.gmail.com> (Manish's message of "Wed, 27 Aug 2008 15:22:43 +0530")
Manish <mailtomanish.sharma@gmail.com> writes:
Hi!
> > --8<---------------cut here---------------start------------->8---
> > (setq org-default-notes-file "~/repos/org/main.org"
> > org-remember-default-headline "Remember"
> > org-remember-templates
> > '(;; TODOs
> > ("todo-template" ?t "* TODO %?\n (created: %U)\n %i\n %a")
> > ;; Ideas
> > ("idea-template" ?i "* Idea: %^{Title}\n (created: %U)\n %?\n %i\n %a")
> > ;; Notes
> > ("note-template" ?n "* Note: %?\n (created: %U)\n %i\n %a")))
> > --8<---------------cut here---------------end--------------->8---
>
> I took liberty to rephrase the template definition. Seems to work as
> you expect it to now.
>
> (setq org-remember-templates
> (quote
> ((
> ;; TODOs
> ("todo-emplate" ?t "* TODO %? \n :CREATED: %U%i\n %a" "~/org/main.org" "Remember")
> ;; Ideas
> ("idea-template" ?i "* Idea: %^{Title}\n %?\n :CREATED: %U%i\n %a" "~/org/main.org" "Remember")
> ;; Notes
> ("note-template" ?n "* Note: %?\n :CREATED: %U%i\n %a" "~/org/main.org" "Remember"))))
Even if it works with this definition, it's only a workaround.
,----[ C-h v org-remember-templates RET ]
| org-remember-templates is a variable defined in `org-remember.el'.
[...]
| The fourth element is optional and can specify a destination file for
| remember items created with this template. The default file is given
| by `org-default-notes-file'. If the file name is not an absolute
| path, it will be interpreted relative to `org-directory'.
|
| An optional fifth element can specify the headline in that file that should
| be offered first when the user is asked to file the entry. The default
| headline is given in the variable `org-remember-default-headline'. When
| this element is `top' or `bottom', the note will be placed as a level-1
| entry at the beginning or end of the file, respectively.
[...]
| You can customize this variable.
|
| [back]
`----
So the 4th and 5th element are optional and should use the values of
`org-default-notes-file' and `org-remember-default-headline' if not
specified. But that's not done for the headline in my case...
Bye,
Tassilo
--
No person, no idea, and no religion deserves to be illegal to insult,
not even the Church of Emacs. (Richard M. Stallman)
next prev parent reply other threads:[~2008-08-27 10:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-27 6:45 Org-remember items are stored to the wrong headline Tassilo Horn
2008-08-27 9:52 ` Manish
2008-08-27 10:24 ` Tassilo Horn [this message]
2008-09-05 6:20 ` Carsten Dominik
2008-09-05 7:42 ` Tassilo Horn
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ej4a7o20.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=emacs-orgmode@gnu.org \
--cc=mailtomanish.sharma@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).