C-x C-c
Exit EmacsC-g
Quit partially entered commandC-z
- Suspend Emacs, returns to command line,fg
or%emacs
to return back<ESC> <ESC> <ESC>
- get out of recursive editing level etc.
C-h <character
- to get help about a specific subjectC-h ?
- To get Emacs' generic helpC-h c C-p
- Mini help about theC-p
functionC-h k C-P
- Full documentation for theC-p
functionC-h f
- Find a function by describing itC-h v
- displays the documentation about variablesC-h a
- Find documentation using keyword, command aproposC-h i
- Opens Emacs manuals
C-v
View next screenM-v
View previous screenC-l
Center the cursor and text to middle of the screenC-l C-l
Move text and cursor to top of the screenC-l C-l C-l
Move text and cursor to bottom of the screenM-<
Beginning of the documentM->
End of the document
C-u
8
C-f
- Move forward 8 charactersC-u
8
C-v
- Move down 8 linesC-u
5
*
- Inserts*****
C-f
Forward one characterC-b
Backwards one characterC-p
Previous lineC-n
Next line
M-f
Forward one wordM-b
Backward one word- When cursor is in the middle of the word
- When cursor is in the white space it skips the word
C-a
Beginning of the lineM-a
Beginning of the sentenceC-e
End of the lineM-e
End of the sentence
<DEL>
- Delete a character before the cursorC-d
- Delete a character after the cursorM-<DEL>
- Kill the word before the cursorM-d
- Kill the word after the cursorC-k
- Kill all from cursor position to end of lineM-k
- Kill all from cursor position to end of sentenceC-<SPC>
M-e
C-w
- Kill all text in the selection
C-y
- Yanks / pasted the killed textC-m
- Yanks the previous killed textM-x
replace-string
foo
bar
- replaces the string foo with bar in the text following the cursor
C-/
- Undo commandC-_
- Undo commandC-x u
- Undo command
C-x C-f Find a file
- Open a fileC-x C-s
- Save the fileM-x recover-file
- Recovers an autosaved version of the file after a crash
C-x 1
- Kill all other windowsC-x C-b
- List all buffersC-x b buffer_name
- Switch to a different bufferC-x s
- Save some buffers
C-x 2
- Split the current buffer into 2C-x o
- To move the cursor to the other windowC-M-v
- Scroll down the other windowC-x 4 C-f
- Open a file in a split
M-x make-frame
- Creates a new frameM-x delete-frame
- Removes the selected frame
C-x
- Character extend, followed by one characterM-x
- Named command extend, followed by a long name
M-x fundametal-mode
- Switches to the fundamental major modeM-x text-mode
- Switches to text major modeC-x m
- Get documentation about the current modeC-x auto-fill-mode
- Activates the auto-fill minor modeC-u 2 0 C-x f
- Changes the auto-fill line to 20M-q
- Auto-fill will re-fill a previosuly set paraghraph if initiated inside the paragraph
C-s
- Forward search, additionalC-s
will go to next result<DEL>
will go backC-r
- Reverse search