From: Carsten Dominik <dominik@science.uva.nl>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: FR: pre-select applicable templates depending on the context
Date: Mon, 3 Mar 2008 09:12:40 +0100 [thread overview]
Message-ID: <5C86CAC0-BA1B-4131-AEE9-92944046CA73@science.uva.nl> (raw)
In-Reply-To: <873arak0oj.fsf@bzg.ath.cx>
[-- Attachment #1.1: Type: text/plain, Size: 1385 bytes --]
On Mar 1, 2008, at 2:56 PM, Bastien wrote:
> I have a few templates in `org-remember-templates': one that I mainly
> use when I'm in my mailbox, another one that I mainly use when I'm
> coding, one that I mainly use when I'm reading the web, etc.
>
> I think it would make sense to reduce the number of available
> templates
> when calling `org-remember'. This would be done by adding a new
> element
> to each template:
>
> t: force pre-selection of this template in every context
> '(major-mode): pre-select this template only in major mode (actually a
> list of major modes)
> nil: never pre-select this template, unless there are no other
> pre-selected templates
>
> The default value would be `nil' for all template, so that the current
> behavior wouldn't be touched.
>
> Would people find this useful?
I would with the addition that I'd also like to allow a function
in there that would determine if the template should be pre-selected.
The trouble with implementing this is that you need to modify the
customize type, in a way that is compatible with older versions.
This has happened before with the org-remember-templates, therefore
there
is already a :get element that normalizes the value. Please modify this
in a way so that customize will swallow old settings.
Thanks, great idea.
- Carsten
>
>
> --
> Bastien
[-- Attachment #1.2: Type: text/html, Size: 2623 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2008-03-03 8:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-01 13:56 FR: pre-select applicable templates depending on the context Bastien
2008-03-03 8:12 ` Carsten Dominik [this message]
2008-03-04 3:38 ` Bastien
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=5C86CAC0-BA1B-4131-AEE9-92944046CA73@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/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).