From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: multi letter agenda commands Date: Sun, 11 Oct 2015 12:49:29 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJoX-0007Oo-Aj for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:49:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlJoS-0003DX-W2 for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:49:37 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:35485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlJoS-0003DT-Rw for emacs-orgmode@gnu.org; Sun, 11 Oct 2015 12:49:32 -0400 Received: by qkap81 with SMTP id p81so51053168qka.2 for ; Sun, 11 Oct 2015 09:49:32 -0700 (PDT) In-reply-to: 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xebar Saram Cc: org mode I didn't try Eric's advice but it is probably a good idea ;) This is pretty easy to do with a hydra menu. Here is a super simple example. See https://github.com/abo-abo/hydra. (defhydra hydra-agenda (:color red :hint nil) "Agenda hydra" ("fd" (org-tags-view nil "TODO=\"DONE\"") "DONE") ("ft" (org-tags-view nil "TODO=\"TODO\"") "TODO") ("fa" (org-tags-view nil "TODO=\"ASSIGNED\"") "ASSIGNED")) This creates a command hydra-agenda/body that will give you a menu with hints. I love hydras for this kind of thing. Xebar Saram writes: > Hi all > > im wondering if anyone knows a way (or if its possible at all) to have > multi letter agenda commands, for example > > ("fc" "to cook" tags "Cuisine=\"American\"" > ( > (org-agenda-files '("~/org/files/agenda/food.org")) > (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority > where priority goes first. > > ) > ) > > ("fa" "to cook" tags "Cuisine=\"Asian\"" > ( > (org-agenda-files '("~/org/files/agenda/food.org")) > (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority > where priority goes first. > > ) > ) > > where i would press f then a or c to launch the appropriate agenda command > > thx so much > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu