emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] multi letter agenda commands


From: John Kitchin
Subject: Re: [O] multi letter agenda commands
Date: Sun, 11 Oct 2015 12:49:29 -0400
User-agent: mu4e 0.9.13; emacs 25.0.50.1

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]