Open xuchunyang opened 5 years ago
In evilified buffers RET is bound to org-open-at-point
. So doing this I think will break it for Spacemacs and Doom users.
I've never used Evil. If you want to RET
, you can just use it, it should work for everybody, right? e.g.,
(define-key mw-thesaurus-mode-map (kbd "RET") #'mw-thesaurus--lookup-at-point)
No, I'm pretty sure that's the reason why I did it that way in the first place. I wanted it to be in Org-mode, using outline worked, but it wasn't looking as nice, and in evilified org-mode buffer, RET
wouldn't work as I wanted. I know, that's probably not the right way, but it works.
You want RET
to run mw-thesaurus--lookup-at-point
, right?
and then
(define-key mw-thesaurus-mode-map (kbd "RET") #'mw-thesaurus--lookup-at-point)
doesn't work for you?
i also have this issue. not using evil, RET doesn't work for me.
https://github.com/agzam/mw-thesaurus.el/blob/aaa4b7b71b5b08535c294cad1517863167f97fa8/mw-thesaurus.el#L64
org-open-at-point
is bound toC-c C-o
notRET
by default. Maybe you just want to bindRET
directly without remap?