This is not a direct answer, but a few tips.
You can enable (delete-selection-mode 1)
with (delete-selection-mode 1)
. Then, if the area is marked, when you start typing, the region will be deleted. But in your case, you can just use Cw to cut out the current region, this will add the region to kill-ring, but kill-line
will do it too.
Daimrod
source share