From: Manish <mailtomanish.sharma@gmail.com>
To: "Søren Pedersen" <pengmeister@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: calling org-remember with an argument to select remember-type?
Date: Thu, 23 Oct 2008 01:26:28 +0530 [thread overview]
Message-ID: <e7cdbe30810221256g45620a9bg8763d16c522340f9@mail.gmail.com> (raw)
In-Reply-To: <loom.20081022T185841-321@post.gmane.org>
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
next prev parent reply other threads:[~2008-10-22 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 19:18 calling org-remember with an argument to select remember-type? Søren Pedersen
2008-10-22 19:56 ` Manish [this message]
2008-10-22 23:34 ` Søren Pedersen
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=e7cdbe30810221256g45620a9bg8763d16c522340f9@mail.gmail.com \
--to=mailtomanish.sharma@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=pengmeister@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).