Use-package: Support unbind keys?

Created on 16 May 2017  路  2Comments  路  Source: jwiegley/use-package

Although the bind-key package supports unbinding, use-package doesn't seem to support it. There are some packages that by default make a lot of duplicate key bindings or is just plain ridiculous, it would be nice if use-package supports it.

Most helpful comment

The standard way of unbinding keys in Emacs is to bind them to nil. The :bind keyword of use-package does, of course, support this. The only aspect of unbinding unsupported by the :bind keyword is removing the definition from the bind-key.el-specific variable personal-bindings in addition to binding the key to nil. This has the user-visible effect that M-x describe-personal-keybindings does not take such unbindings into account.

All 2 comments

The standard way of unbinding keys in Emacs is to bind them to nil. The :bind keyword of use-package does, of course, support this. The only aspect of unbinding unsupported by the :bind keyword is removing the definition from the bind-key.el-specific variable personal-bindings in addition to binding the key to nil. This has the user-visible effect that M-x describe-personal-keybindings does not take such unbindings into account.

Ah thank you

Was this page helpful?
0 / 5 - 0 ratings