emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Hugo Schmitt <hugows@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: FR: interactive todo creation with remember templates
Date: Fri, 25 Jan 2008 14:58:12 +0100	[thread overview]
Message-ID: <7DBD0865-2702-4A87-86FE-497037BD571E@science.uva.nl> (raw)
In-Reply-To: <2f1c7d020801240837q495ef3fdodc8a6a174041d9b7@mail.gmail.com>


On Jan 24, 2008, at 5:37 PM, Hugo Schmitt wrote:

> I think my suggestion doesn't fit orgmode that well, but what if
> 'org-remember' had 'template' as an optonal argument? (instead of
> pulling from org-remember-template interactively).
>
> Then people could write their own menus/keymap/etc before calling  
> remember.
> (Hmm, thinking about it, maybe i'll try that myself so i can call
> remember from Anything)

If you are wiling to  write lisp code, you can already do this, by  
putting
a list with only one template temporarily into org-remember-templates,
like this:

(let ((org-remember-templates
        ("Task" 116 "* TODO %?\n  %u" "~/org/gtd.org" "Tasks")))
   (call-interactively 'org-remember))

When there is only a single template in the list, Org-mode will actually
skip the query for the template and execute it right away.

So yes, you can write a function that does built a template on the fly.

Hope this helps

- Carsten

  reply	other threads:[~2008-01-25 13:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22 14:55 FR: interactive todo creation with remember templates Austin Frank
2008-01-24 15:33 ` Carsten Dominik
2008-01-24 16:37   ` Hugo Schmitt
2008-01-25 13:58     ` Carsten Dominik [this message]
2008-01-25 15:03       ` Hugo Schmitt

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=7DBD0865-2702-4A87-86FE-497037BD571E@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=hugows@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).