reddit / emacs

Kebind for opening org-agenda and all TODOs

ComputerGuyMiguel · 2022-03-09 10:07
I currently have a global keybind set up so that I can open org-agenda, that works all fine, opening the menu with all the optiosn (a,t,m etc.) but I find myself using the **n** option (agenda and all TODOs) more than anything else, and I would like to bind that to a separate keybind. This would be trivial if I just wanted to run org-agenda-list (**a**) but since the option I want is part of the *org-agenda-custom-commands* and has no direct function associated to it I don't know how to do this. Any help is welcomed!
organic-bookworm · 2022-03-09 10:57
(defun my/org-agenda-view-agenda-todos (interactive) (org-agenda nil "n")) (global-set-key KEY #'my/org-agenda-view-agenda-todos)
ComputerGuyMiguel · 2022-03-10 09:01
thank you!