In org-mode
, the link-following behaviour of RET
, that should be present when org-return-follows-link
is set, doesn't work in evil-mode
.
MWE from emacs -q
:
- Load an org buffer containing a link. Note that
RET
is bound toorg-ret
, but doesn't follow links. [Expected] - Set
org-return-follows-link
. HitRET
when point is over a link. Emacs follows the link. [Expected] - Enable
evil-mode
. Note thatRET
is now bound toevil-ret
, and no longer follows links. [Not what I expected]
It makes no difference if evil-mode
is enabled before or after we enter org-mode
or set org-return-follows-link
.
I also tried it with evil-org-mode
from https://github.com/Somelauw/evil-org-mode, but that didn't make any difference either. I did notice some code in there that seems to optionally customise the behaviour of the return key according to a "keymap theme", but I didn't seem to be able to make any difference either by playing with that.
So, any idea how I can follow links in org-mode
with evil-mode
enabled, using RET
? I suppose one option is just to override the mapping of RET
to be org-ret
, but I get the feeling that that will interfere with other uses of the key that evil relies on. Is there a smarter way that these two behaviours should be integrated?
Thanks.