sebasmonia / panda

Emacs package that consumes Bamboo's REST API to do useful things.
MIT License
3 stars 3 forks source link

Improve keymap with documentation #21

Closed sebasmonia closed 5 years ago

sebasmonia commented 5 years ago

For an unrelated issue I saw this in the Emacs subreddit:

(defvar pkg-ops-map
  (let ((map (make-sparse-keymap "Packages")))
    (define-key map "h" '("describe" . describe-package))
    (define-key map "r" '("reinstall" . package-reinstall))
    (define-key map "a" '("autoremove" . package-autoremove))
    (define-key map "d" '("delete" . package-delete))
    (define-key map "i" '("install" . package-install))
    (define-key map "l" '("list" . list-packages))
    map))

(global-set-key (kbd "C-x p") pkg-ops-map)

This prints in the echo area the list of keys and commands. It would be great if Panda, with its long sequences, had the same type of docs in the bindings.

sebasmonia commented 5 years ago

Added in 1efdbdcfe578f1f1402443f3c8013fbb4d1c3ed1.