jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.42k stars 260 forks source link

Confused by something in the Readme.md #932

Closed verslyfr closed 2 years ago

verslyfr commented 3 years ago

The README.md indicates the following code causes the key binding to be done in helm-mode-map, but the keymap name appears to be helm-command-map. This change in the names of the map has me confused. Is it a typo, or can an explanation be added how we go from helm-command-map to helm-mode-map?

README.md Snippet


(use-package helm
  :bind (:map helm-command-map
         ("C-c h" . helm-execute-persistent-action)))

The effect of this statement is to wait until helm has loaded, and then to bind the key C-c h to helm-execute-persistent-action within Helm's local keymap, helm-mode-map.

matta commented 2 years ago

It is just a typo in the README. It binds to helm-command-map as written in the code sample.

Try M-x pp-macroexpand-last-sexp with the cursor at the end of a use-package form to see what it expands to.

skangas commented 2 years ago

This seems to have been fixed, so I'm closing this issue now.