How can I have delete-selection-mode
work when I press Enter (RET
) in Org mode? I can always just delete the selection and then use RET
, but I'm having a hard time working this into my muscle memory.
Current behavior: I select the text I want to replace. I use RET
. A newline is input at point, no text is deleted, and the region remains active.
Desired behavior: I select the text I want to replace. I use RET
. The text is replaced with a newline.
FINAL EDIT: This was an issue with the version of Org mode that I had installed. I was able to resolve it by opening Emacs and immediately (before opening any .org files) package-list-packages
and installing org
. I had to restart Emacs, and the issue was resolved.
delete-selection-mode
tot
, I get the desired behavior you describe.emacs -Q
? If not, bisect your init file to find the culprit. Also, if you see the problem only in some specific mode or context, provide a step-by-step recipe to repro the problem, starting withemacs -Q
C-h c RET
)?M-x org-version
?