How to delete all the lines in one go in emacs? -


i want delete lines below particular line of emacs ? there any shortcut key can delete lines below particular line?

c-u 9999999 c-k should trick.

if not @ beginning of first line want kill, use c-a c-u 9999999 c-k.

(the 9999999 can number larger number of lines want kill.)

an alternative using c-u 999999 hold down control key , hold down 9, get, in effect: c-9 c-9 c-9 c-9 c-9 c-9 c-9 c-k.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -