Skip to content
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

Poly-org-mode-map and evil #14

Open
srnnkls opened this issue May 22, 2019 · 5 comments
Open

Poly-org-mode-map and evil #14

srnnkls opened this issue May 22, 2019 · 5 comments

Comments

@srnnkls
Copy link

srnnkls commented May 22, 2019

Another observation:

poly-org-mode-map is applied only after switching to insert-state first? What is the best way to initially take care of precedence of poly-org-mode-map over evil-normal-state-map?

@vspinu
Copy link
Contributor

vspinu commented May 22, 2019

I don't use evel so you will have to elaborate a bit more here. What's the problem in concrete terms?

@srnnkls
Copy link
Author

srnnkls commented May 23, 2019

The problem lies on the evil side (Why don’t keys defined with evil-define-key work (immediately)?).

The solution, after finding the right hook, was pretty straightforward, though:

(add-hook 'polymode-init-inner-hook
  #'evil-normalize-keymaps)

Sorry for bothering you!

@srnnkls srnnkls closed this as completed May 23, 2019
@vspinu
Copy link
Contributor

vspinu commented May 23, 2019

Should this be added as part of polymode compatibility layer instead? Others might find this useful as well right?

@srnnkls
Copy link
Author

srnnkls commented May 23, 2019

Of course, good idea.

@vspinu vspinu reopened this May 23, 2019
@srnnkls
Copy link
Author

srnnkls commented May 23, 2019

Is 228 sufficient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants