From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Feature request: two-letter combination for org-capture Date: Tue, 07 Jun 2011 23:53:59 +0200 Message-ID: <80wrgxs3yg.fsf@somewhere.org> References: <4dee959c.0a92ec0a.1471.0181@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Darlan, Darlan Cavalcante Moreira wrote: > A nice feature of the org-agenda is the possibility to define two letter > combinations for the custom commands. From the manual I could not see how to > do this with org-capture and I'm guessing it is not possible right now. It already is... See an example below, with the helper function I defined for myself... #+begin_src emacs-lisp (defun my/org-capture-template (keys description file headline) "Create template for captured elements." `(,keys ,description entry (file+headline ,file ,headline) "* %^{Title} :PROPERTIES: :Created: %:date-timestamp-inactive :END: %? %i >From %a" :empty-lines 1)) #+end_src ... for avoiding repetitive skeleton: #+begin_src emacs-lisp (setq org-capture-templates `(;; notes ("N" "Templates adding notes") ,(my/org-capture-template "Ne" "Emacs" "~/Public/Notes-on-Emacs.txt" "Notes") ;; [...] ,(my/org-capture-template "No" "Org" "~/Public/Notes-on-Org.txt" "Notes"))) #+end_src Best regards, Seb -- Sebastien Vauban