-
Notifications
You must be signed in to change notification settings - Fork 16
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
major-mode-keys not always working #22
Comments
I think the problem is that Another alternative is to not add the keys until
I think that should work. |
Another way could be (I haven't tried it) to use the
|
The first suggestion works fine, the second with use-package fails with an error:
I can live with the first solution but I'm wondering why the Thanks for the fast help! Thorsten |
I'm not quite sure, since I haven't written the Perhaps @hgersen have suggestions on what to do? |
Yes indeed, in my config |
I've experienced these problems to. I'm not sure what's the best approach. Perhaps you could load
|
Sorry for the slow response as I was very busy with work. When I was using :ryo to bind keys I indeed used the Note that even when using Unfortunately I have personally stopped using the :ryo keyword as I went back to using :bind, :hook, etc from use-package directly. Although it worked when I used it, the key reason to do this was to have one less layer of confusion/error to deal with. My personal config has bits where :bind should work, but it doesn't for example. btw) from the description of the problem I find it very hard to see what is going wrong. It might be worth posting a very minimal example to illustrate the problem better? btw2) If your problem is to get latex working. I think you should be using
so not tex! edit) Now I look in a bit more detail at the examples....maybe you should be using :hook instead of :mode? My current config is still work in progress, but the example for flyspell below is what I do.
|
Thanks both of you for your detailed answers. I fiddled a bit in my config and decided keep it like it is. @hgersen yes I changed from
I guess that has something to do with a special auctex minor mode, but I don't know. I solved it with a custom In general I think, |
Perhaps you could try |
Seeing this example I would personally check the one that fails with a different keybinding as I have been bitten by that one before. Things tend to fail in obscure ways if you reuse a binding by accident....and btw) My understanding is that using :hook would have the same effect as doing eval-after-load, but cleaner. |
Ok, after some fiddeling with
This works fine without But not problem, I works with a personal hydra, so for me the problem is solved. Thanks for the detailed explanations... Thorsten |
This is quite late, but seeing that this issue is still 'open' I thought I'd add my experience. Facing a similar issue with a different package, adding that package to the
resolved the errors. |
I'm using ryo with auctex and have a small issue with my major mode key setting, see here:
LaTeX-fill-environment
is working fine butLaTeX-close-environment
not. I got an error messageError (use-package): ryo-modal/:config: ‘LaTeX-close-environment’ isn’t a function
Auctex is loaded by use-package like so:
BTW it's the same with
LaTeX-fill-region
, onlyLaTeX-fill-environment
is working...What can I do to fix this?
Regards
Thorsten
The text was updated successfully, but these errors were encountered: