I do the following to activate the region and evaluate it
M-x spc to begin mark
C-n
C-n
C-n
M-x eval-region
The region is still active (highlighted) after the eval-region
is performed.
I would prefer if eval-region
evaluated the region and then deactivated the region, leaving the cursor after the code that was just evaluated.
I have this to start:
(defun e-eval-region (START END)
"Execute region from START to END using `eval-region and unhighlight result."
(interactive)
(eval-region START END)
(keyboard-quit))
How do I properly pass START
and END
of region to interactive
?