From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Org capture with predefined entries from a list? Date: Wed, 22 Sep 2010 09:13:13 +0200 Message-ID: <87zkvatfna.fsf@gnu.org> References: <319837.26764.qm@web29005.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=37809 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyJW1-0005IZ-M4 for emacs-orgmode@gnu.org; Wed, 22 Sep 2010 03:13:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyJW0-0006o8-3E for emacs-orgmode@gnu.org; Wed, 22 Sep 2010 03:13:17 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:47290) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyJVz-0006nk-Up for emacs-orgmode@gnu.org; Wed, 22 Sep 2010 03:13:16 -0400 Received: by wyb36 with SMTP id 36so265223wyb.0 for ; Wed, 22 Sep 2010 00:13:15 -0700 (PDT) In-Reply-To: <319837.26764.qm@web29005.mail.ird.yahoo.com> (Miguel Ruiz's message of "Wed, 22 Sep 2010 05:26:57 +0000 (GMT)") 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: Miguel Ruiz Cc: emacs-orgmode@gnu.org Hi Miguel, Miguel Ruiz writes: >> You should explore using multiple keys for the capture template >> definition -- see the manual: > > Do you mean I should generate all the combinations and assign a > template to each one? Yes. > Can you provide any kind of minimal example? (setq org-capture-templates '(("l" "LifeHacking") ("lw" "LifeHacking write something") ("lw+" "LH write something clever" entry (file+headline "~/org/bzg.org" "LifeHacking") "* INPROGRESS My new clever writing\n\n%?" :prepend t) ("lw-" "LH write something stupid" entry (file+headline "~/org/bzg.org" "LifeHacking") "* INPROGRESS My new stupid writing\n\n%?" :prepend t))) M-x org-capture RET will let you select the "l" menu entry for "LifeHacking", then the "w" menu entry which is more specific, etc. You can easily emulate the example you gave in your previous email. HTH, -- Bastien