Emacs notes
C-<chr>
# hold the Ctrl key while typing
the character <chr>
M-<chr> # hold the Alt
key while typing the character <chr>
S-<chr> # hold the
Shift key while typing the character <chr>
C-w
# cut
M-w
#copy
C-y
#paste
Dired # the file manager mode
C-x
C-c, #end the Emacs session
C-g,
#quit a partially entered command
Move around
C-p
# previous line
C-n
# next line
C-b
# backward a character
C-f
# forward a character
C-a
# beginning of line
C-e
# move to end of line
M-a
# move back to beginning of sentence
M-e
# move forward to end of sentence
C-v,
#view next screen
M->
# the end of the whole text
C-x
1 # one window, kill all other windows
C-g
# cancel the command
|
C-a
|
Beginning of line
|
|
M-f
|
Forward one word
|
|
M-a
|
Previous sentence
|
|
M-v
|
Previous screen
|
|
M-<
|
Beginning of buffer
|
C-u #repeat
|
C-u 3 C-p
|
#Back 3 lines
|
C-u
followed by a number and a movement command repeats that command the specified
number of times
If
you use C-u without specifying a digit, the default is 4
Open tutorial
Inserting and deleting
Electric: press a key does more than simply inserting
the relevant character
M-d # kill the word after the cursor
C-k # kill from the cursor position to end of line
M-k # kill to the end of the current sentence
Killing =/=deleting
C-/ # undo the changes made by one command
Buffer # a place in a computer's memory for storing information
temporarily
C-x
C-f # find file
C-x
c-s # save file
C-x
s # save some buffers
C-x
C-b # list buffers
C-x
b # switch buffer
C-x
C-c # quit Emacs
C-x
u # undo
C-z
# exit Emacs temporarily so that you can come back afterward
fg#
resume Emacs
%emacs # resume Emacs
Searching
C-s # forward search
C-r # reverse search
Multiple windows
Windows=frames
C-x o # move the cursor to the other window
Yanking=pasting text
|
C-y
|
Yanks last killed text
|
|
M-y
|
Replace yanked text with previously killed text
|
Tips for beginners
Emacs for Windows users
M- up arrow # move line up
M-RightArrow
# Indent Bullet Point
M-Enter
# Create new bullet Point (*)
M-UpArrow # Move Bullet Point Up
M-UpArrow # Move Bullet Point Up
S-RightArrow
# Mark Bullet Point as TODO
C-c # add Tag to Bullet Point
C-c # add Tag to Bullet Point
C-x:
Character eXtend. Followed by one
character.
M-x: Named
command eXtend. Followed by a long na
Cutting=killing
Pasting=yanking
select a region of text
region: The text between point and the mark.
To
specify the text for such a command to operate on, you set the mark at one end of it, and move point to
the other end.
The
buffer is the basic editing unit; one buffer corresponds to one text being
edited.
From
<https://kb.iu.edu/d/aiuf>
Comments
Post a Comment