How do I disable cua's rectangle mark mode when using org mode in emacs? Ctrl + Enter is used by both modes and I'd prefer to just lose cua's functionality when I'm in org mode since I don't usually need to select a rectangle when editing an org document.
I'm pretty sure I once had some code in my .emacs that performed this function but I can no longer find it anywhere online. Sadly I'm not enough of an elisp guru to figure it out myself.
I don't use CUA except for the rectangles, so I do
Org mode's bindings automatically override global bindings, so
C-<enter>runsorg-insert-heading-respect-contentwith no extra configuration.I assume you're using
cua-selection-modeorcua-mode, though. Since it's global you can't turn it off in just org buffers. Probably the best thing is to define your own function and bind it tocua-mode's map.CUA does things kind of weirdly compared to most minor modes, so while the above works for me it might be wonky if your setup is different from mine.