From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: FR: pre-select applicable templates depending on the context Date: Sat, 01 Mar 2008 13:56:28 +0000 Message-ID: <873arak0oj.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVSCd-0001Xf-U0 for emacs-orgmode@gnu.org; Sat, 01 Mar 2008 08:56:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVSCZ-0001Vd-Jb for emacs-orgmode@gnu.org; Sat, 01 Mar 2008 08:56:37 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVSCX-0001Uf-3e for emacs-orgmode@gnu.org; Sat, 01 Mar 2008 08:56:33 -0500 Received: from nf-out-0910.google.com ([64.233.182.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JVSCW-00084d-Dj for emacs-orgmode@gnu.org; Sat, 01 Mar 2008 08:56:32 -0500 Received: by nf-out-0910.google.com with SMTP id f5so3020858nfh.26 for ; Sat, 01 Mar 2008 05:56:31 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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? -- Bastien