These days I am using org-agenda to manage my todo lists. Does there exist some settings that just let the agenda-view choose a specified one. For example, when I use the org-agenda
command, it shows a menu and says: "Press key for an agenda command". Since in most cases, I just choose "a", I am wondering whether there exists a setting to skip the choose and just call one of the listed commands.
-
The question doesn't seem too clear. Maybe someone familiar with Org can clarify it a bit.– DrewJan 26, 2018 at 15:20
1 Answer
It is quite simple to define your own keybindings.
At first you need to know what command is called by org-agenda
a
.
The documentation string of org-agenda
reveals that (just type C-h f org-agenda
RET). You will see that a
is bound to org-agenda-list
.
Now you can define your preferred keybinding in your initialization file with
(add-hook 'org-mode-hook
(lambda ()
(local-set-key (kbd "C-c a") #'org-agenda-list)))
Afterwards you can call org-agenda-list
with C-c a.
Note, that the bindings with prefix C-c are reserved for mode-local keybindings.
Furthermore, keybindings C-c followed by a letter without modifiers are reserved for the user (i.e., for you). They should never be used by libraries. So you can safely use them for your purpose.