C = Ctrl
M = Meta or Alt
Moving in emacs
C - x, C - c
|
quits the editor
|
M - >
|
moves to the end of the file
|
M - <
|
moves to the beginning of the file
|
C - v
|
moves a screen display forward
|
M - v
|
moves a screen display back
|
C - x ]
|
moves a page forward
|
C - x [
|
moves a page back
|
C - n
|
moves to next line
|
C - p
|
moves to previous line
|
C - a
|
moves to the beginning of line
|
C - e
|
moves to the end of line
|
M - e
|
moes to the end of sentence
|
M - a
|
moves to the beginning of sentence
|
C - f
|
moves forward one character
|
C - b
|
moves back one character
|
M - f
|
moves forward a word
|
M - b
|
moves back a word
|
Deleting in emacs
Delete
|
deletes the prior character
|
C - d
|
deletes the current character
|
M - Delete
|
deletes the prior word
|
M - d
|
deletes the next word
|
C - x Delete
|
deletes the prior sentence
|
M - k
|
deletes the rest of the sentence
|
C - k
|
deletes the rest of the current line
|
C - x u
|
undone the last editing
|
Search & Replace
M - x query-replace
|
Search & Replace
y - changes the incident of the pattern
n - dont change the incident of the pattern, but search for another one
q - dont change the incident of the pattern. Quit search & replace ( can also use ESC)
! - replaces this incident of the pattern and all the other incidents
|
C - s
|
searches forward in the file for the pattern
|
C - r
|
searches backwards for the pattern
|
Help menu
C - h, C - h
|
help screen
|
C - h i
|
the info directory
|
C - h t
|
emacs tutorial
|
Working with files
C - x i
|
add a file to the buffer
|
C - x, C - w
|
writes the buffer to the given file
|
C - x, C - s
|
saves the file
|
C - x, C - f
|
opens another file to a new buffer
|
C - x b
|
change to another buffer
|
No comments:
Post a Comment