Useful emacs commands

Note that below

Start emacs with

emacs -Q file.txt

and you will not have to experinece the annoying split-screen view.

1) Useful keyboard commands.

ctrl-aGo to the beginning of line
ctrl-eGo to the end of line
ctrl-nGo to the next line
ctrl-pGo to the previous line
ctrl-x uUndo the previous command
esc <Go to the beginning to the file

2) Removing rectangle areas from the text:

3) Using emacs macros :

You can teach emacs a keyboard sequence and easily repeat that sequence as many times as you wish.

The recorded keyboard sequence can be replayed by ctrl-e.

If you want to repeat it many times just pressing e after the first ctrl-e is enough.