-
Notifications
You must be signed in to change notification settings - Fork 190
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
RET
in the options menu conflicts with org
's DWIM
#75
Comments
This has popped up before, see #40. This could be due to some quirk of |
yes, it works, thanks!
…On Sun, 18 Jun 2023 at 22:25, karthink ***@***.***> wrote:
This has popped up before, see #40
<#40>. This could be due to some
quirk of evil-mode integration with org, or perhaps some Doom Emacs
customization. I'm not sure how to fix this -- the workaround is to use
C-m instead of RET. Does that work?
—
Reply to this email directly, view it on GitHub
<#75 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEL3S3HMJWCLRYD27C5CCZTXL5I3HANCNFSM6AAAAAAZE5CCEI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It's not just a single key. It can happen for any other keys too. Evil for some reason prioritizes major buffer keymap over transient keys. I solve that in my Doom-based config by doing this crap: (defadvice! transient-show-no-evil-a (ofn name &rest args)
:around 'transient-setup
(if (eq name 'gptel-menu)
(save-mark-and-excursion
(evil-emacs-state)))
(apply ofn name args))
(add-hook! 'transient-exit-hook
(defun transient-exit-evil-normal-h ()
(save-mark-and-excursion
(when (evil-emacs-state-p)
(evil-normal-state))))) for whatever reason transient-setup-hook didn't work for me for the first thing, and I was in the middle of something, so I didn't really have time to find a better approach. I'm not very happy with this, because I feel sometimes it fails to go back to normal-state. |
- changed some major keybindings - I want to use gptel as a global key - There was a transient issue I had to address: karthink/gptel/issues/75 Not extremely happy with the approach, but it seems to be working for now
- changed some major keybindings - I want to use gptel as a global key - There was a transient issue I had to address: karthink/gptel/issues/75 Not extremely happy with the approach, but it seems to be working for now
I'm getting
and I'm not sure how to override this binding, since I don't understand how is the major mode set for the transient menu - why would it still be in org mode?
Thanks!
The text was updated successfully, but these errors were encountered: