1

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.

1
  • The question doesn't seem too clear. Maybe someone familiar with Org can clarify it a bit.
    – Drew
    Jan 26, 2018 at 15:20

1 Answer 1

2

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.