-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add global minor mode with autoloads #11
Comments
Actually, I'll probably create a pull request for this. Stay tuned... |
/bump I would really like this. |
er, at least a minor-mode for smex would be nice. |
@nonsequitur Any news here? |
DarwinAwardWinner
referenced
this issue
in DarwinAwardWinner/amx
Mar 12, 2017
Fixes #11. The minor mode currently only remaps "execute-extended-command" to "smex". It doesn't add bindings for the other smex commands such as "smex-major-mode-commands".
15 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now, smex needs to be initialized explicitly with
smex-initialize
in the user'sinit.el
file. This could be eliminated by creating a global minor mode forsmex
which sets up and tears down the settings. By usingdefine-minor-mode
with a non-nil:global
keyword, adefcustom
will be generated automatically, allowing users to toggle smex on and off throughcustomize
. Thedefine-minor-mode
should have a;;;###autoload
token to allow it to be activated purely through a user's custom file.To enable the keybinding, smex should remap
execute-extended-command
rather than overwriting its global definition. This could be accomplished using the following in the body ofdefine-minor-mode
:This way, smex only makes nondestructive changes.
The text was updated successfully, but these errors were encountered: