I was wondering how to implement a command on a region when highlighted if it starts with Ctrl+C when Cua bindings are on.
For example, I want to highlight like four lines of text in LaTeX mode and run the command Ctrl+C Ctrl+f Ctrl+b which changes the text to bold or italics. With cua bindings on it copies the region immediately, is there a way to select region after the mark has been set and say run the commmand on this region to operate correctly in this case. If you just run the command straight after setting the mark it puts the command in place not on the region.
Not sure if this is possible but I like the cua binding and only do the above occasionally but was just wondering or if the easiest thing is removing the cua binding.
Note: I realized with the below set that it works correctly because it doesn't deactivate the region with a copy and actually continues commands and doesn't stop at Ctrl+C like with it turned off. Is it possible to do something similar without setting keep region after copy?
(setq cua-keep-region-after-copy t)
This has to due with the speed you press another key after pressing a cua key binding. If highlighted any you press a key binding with a cua binded key really fast it will activate the command on the region. I think the default is like 0.2 seconds or something relatively fast. The variable that changes this if you want to set it longer or slower:
cua-prefix-override-inhibit-delay
: