delete-selection-mode enabled. In programming modes like Python and Lua, or in general modes like Fundamental or Text, when there's an active region, pressing
( rightly wraps the region with the parenthesis pair like
). I understand that this behaviour is not special and the key
( is just bound to
However, when I'm in CC mode the region is deleted and I see this
(|), which is not the desired behaviour as there was an active region; this seems appropriate when there's no active region. Upon investigation I understand that disabling
delete-selection-mode fixes the situation.
In CC mode, giving
M-( does the job, however, I don't want to special case in my brain saying, for CC mode do
M-( and for every other mode do
(. I want a simple solution where I can just do
( and instead of deleting the selection, the active region should get wrapped.