emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Org-remember items are stored to the wrong headline


From: Tassilo Horn
Subject: Re: [Orgmode] Org-remember items are stored to the wrong headline
Date: Wed, 27 Aug 2008 12:24:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Manish <address@hidden> 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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]