C-key   => hold down ctrl and press key

M-key  => hold Alt (or windows Key under linux) and press key

 

Essential Commands

C-h

help

C-x u / C-_

undo

C-x C-g

get out of current operation or command

C-x C-s

save the file

C-x C-c

close Emacs

 

 

Cursor movement

C-f

forward one character

C-b

back one character

C-p

previous line

C-n

next line

C-a

beginning of line

C-e

end of line

C-l

center current line on screen

C-v

scroll forward

M-v

scroll backward

M-f

forward one word

M-b

back one word

M-a

beginning of sentence

M-e

end of sentence

M-[

beginning of paragraph

M-]

end of paragraph

M-<

beginning of buffer

M->

end of buffer

 

 

Other Important Functions

M-(n)

repeat the next command (n) times

C-d

delete a character

M-d

delete a word

C-k

kill line

M-k

kill sentence

C-s

search forward

C-r

search in reverse

M-%

query replace

M-c

capitalize word

M-u

uppercase word

M-l

lowercase word

C-t

transpose characters

M-t

transpose words

C-@ / C-spc

mark beginning of region

C-w

cut--wipe out everything from mark to point

M-y

Change yanked text for previous

C-y

paste--yank deleted text into current location

M-q

reformat paragraph

M-g

reformat each paragraph in region

M-x auto-fill-mode

turn on word wrap

M-x goto-line <return> 16

move cursor to line 16

M-w

copy region marked

C-x C-f

find file and read it

C-x C-v

find and read alternate file

C-x i

insert file at cursor position

C-x o

Move to other window

C-x C-s

save file

C-x C-w

write buffer to a different file

C-x C-c

exit emacs, and be prompted to save

C-x 4 C-f

Find file and open in other window

C-M-v

Scroll other Window down