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

RET in the options menu conflicts with org's DWIM #75

Closed
JonatanSahar opened this issue Jun 13, 2023 · 3 comments
Closed

RET in the options menu conflicts with org's DWIM #75

JonatanSahar opened this issue Jun 13, 2023 · 3 comments

Comments

@JonatanSahar
Copy link

I'm getting

Unbound suffix: ‘’ (Use ‘C-g’ to abort, ‘?’ for help) [+org/dwim-at-point]

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!

@karthink
Copy link
Owner

This has popped up before, see #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?

@JonatanSahar
Copy link
Author

JonatanSahar commented Jun 19, 2023 via email

karthink added a commit that referenced this issue Jan 17, 2024
* README.org:
- Mention gptel-request near the top.
- Reformat FAQ
- Add solution to #75 and #182 (Doom Emacs keybinding conflict) to
  the FAQ
karthink added a commit that referenced this issue Jan 17, 2024
* README.org:
- Mention gptel-request near the top.
- Reformat FAQ
- Add solution to #75 and #182 (Doom Emacs keybinding conflict) to
  the FAQ
@agzam
Copy link

agzam commented Feb 6, 2025

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.

agzam added a commit to agzam/.doom.d that referenced this issue Feb 6, 2025
- 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
agzam added a commit to agzam/.doom.d that referenced this issue Feb 6, 2025
- 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
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

3 participants