-
Notifications
You must be signed in to change notification settings - Fork 314
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
Expanding inside org-mode code blocks (in evil-mode) #1017
Comments
Yes, it's possible. However it currently doesn't work in |
I found out why it isn't expanding. I use evil-mode. If I turn it off, then it works ok and expands natively. If I enable evil-mode, then it stops working. Any clue about how to fix this? |
Oh, I'm not sure. All three packages are doing some fancy stuff with the keybindings, so having them interact correctly is tricky. |
evil-mode uses
https://github.com/emacs-evil/evil/blob/874beba2cb243c325eca08fb7badff567f3c9494/evil-commands.el |
@DiogoFerrari I'm using evil and I haven't faced any issues. Are you expanding from evil-normal-state or evil-insert-state and could you share what command is run when you press enter? If it's |
Somehow, When I press |
Well the default binding for tab in org-mode is for example, with general: (general-define-key
:states 'insert
"<tab>" 'yas-expand) overrides my global binding of tab and also my org-mode binding of tab. Alternatively you could consider binding another (less popular) key to If your having issues with the available snippets in org code blocks, you can run |
Can you share a GIF of the issue your having and how running in emacs state doesn't have such an issue. I'm still not quite sure what the problem is. |
I recently had the same issue. I found that I could fix the issue either by modifying |
Is it possible to make it work inside org-mode code blocks, and use the native (code block language) expansion?
The text was updated successfully, but these errors were encountered: