-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix customization and documentation for spotify-keymap-prefix #45
base: master
Are you sure you want to change the base?
Conversation
- Add a customize set function for correctly redefining spotify-mode-map when spotify-keymap-prefix is set - Update documentation to reflect this change
@jkdufair may also want to have a look. |
Hi @andersjohansson, thanks for your contribution! It's still not clear to me why this PR is needed. Is there a bug it fixes? Can you describe a step-by-step procedure on how to reproduce it? |
This seems ok to me. I would still provide a default (and leave the docs with that default) so it works “out of the box”. But I like the ability to use customize. We could probably stand to make more vars available via customize |
Sorry for not explaining the reasoning well enough. The point was that looking at the new customizability options for the keymap introduced by @jkdufair, it seemed to me that there were two different recommended ways of setting your own prefix. First, the custom variable. Second, in the readme, the suggestion to do I thought this looked inconsistent and that it would be easier if there was a single recommended way of setting the keymap prefix (even though the As I understand @jkdufair, maybe the default for |
Thanks for the explanation. I tried the code from this PR and I get the following error when I try to
|
Just found that it worked after moving the However, I was not able to set the prefix via customize, it didn't seem to work even after I restarted emacs. I only managed to set the prefix by running |
Ah, I should have known. I seem to always bite myself in some way when using :set functions. I will try to sort it out if you still think it’s a worthwhile approach. I mean, we could instead just remove the custom variable, ask the user to use |
spotify-mode-map when spotify-keymap-prefix is set
In particular, I found that the suggestion to do
(define-key spotify-mode-map (kbd "C-c .") 'spotify-command-map)
in the readme conflicted with thespotify-keymap-prefix
variable.