[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] calling org-remember with an argument to select remember-t
From: |
Manish |
Subject: |
Re: [Orgmode] calling org-remember with an argument to select remember-type? |
Date: |
Thu, 23 Oct 2008 01:26:28 +0530 |
On Thu, Oct 23, 2008 at 12:48 AM, Søren Pedersen wrote:
> Hey all
>
> I am trying to call org-remember and automatically select making a
journal entry
> (associated with the character "j").
>
> I have tried the following:
>
> (org-remember "j")
> (org-remember ?J)
>
> describe-function on org-remember mentions
org-force-remember-template-char so I
> have also tried:
>
> (let ((org-force-remember-template-char ?j))
> (org-remember))
>
> (let ((org-force-remember-template-char "j"))
> (org-remember))
>
> But all of these display the prompt to select which remember-type to create.
>
Following section of manual seems to suggests that you have more than
one template defined and available in that specific mode.
,----[ http://orgmode.org/manual/Remember-templates.html#Remember-templates ]
| When you call M-x org-remember (or M-x remember) to remember
| something, Org will prompt for a key to select the template (if you
| have more than one template) and then prepare the buffer [...]
`----
So either you need to delete other templates or if you call this
template in a specific mode then you can consider defining template so
that it is the only available template in that mode (please see the
URL of the quoted section for details.) I haven't had a chance to
test this yet but seems like a plausible solution.
HTH,
--
Manish