emacs Flashcards

(67 cards)

1
Q

End the Emacs session

A

C-x C-c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

View next screen

A

C-v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Move backwards one screen

A

M-v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Clear screen and redisplay all the text, moving the text around the cursor to the center of the screen

A

C-l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Move to previous line

A

C-p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Move backward a character

A

C-b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Move forward a character

A

C-f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Move to next line

A

C-n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Move forward a word

A

M-f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Move backward a word

A

M-b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Move to beginning of line

A

C-a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Move to end of line

A

C-e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Move back to beginning of sentence

A

M-a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Move forward to end of sentence

A

M-e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Move to the beginning of the whole text

A

M-<

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Move to the end of the whole text

A

M->

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Move forward 16 characters

A

C-u 16 C-f

M-1 M-6 C-f

C-u C-u C-f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Stop a command

A

C-g

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

One window (i.e., kill all other windows)

A

C-x 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Center the screen at the top

A

C-u 0 C-l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Delete the character just before the cursor

A

[del]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Delete the next character after the cursor

A

C-d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Kill the word immediately before the cursor

A

M-[del]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Kill the next word after the cursor

A

M-d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Kill from the cursor position to end of line
C-k
26
Kill to the end of the current sentence
M-k
27
Starting mark to kill
C-@
28
Ending mark to kill
C-w
29
kill the text on the line
C-k
30
yank the text back
C-y
31
replace yanked text with the previous kill
M-y
32
undo
C-/ C-\_ C-x u
33
Find a file
C-x C-f
34
Save the file
C-x C-s
35
List buffers
C-x C-b
36
Save some buffers
C-x s
37
Move forward 64 characters
C-u 64 C-f M-6 M-4 C-f C-u C-u C-u C-f
38
Jump to specified line
M-g g
39
Incremental search forward
C-s
40
Incremental search backward
C-r
41
Set mark to the current location
C-SPC
42
Swap point and mark
C-x C-x
43
When you jump to either end of the buffer (M-\< or M-\>) mark is set to…
your previous location
44
When you Exit incremental search mark is set to…
where you began searching
45
When you Yank text mark is set to…
the beginning of the yanked region
46
Make region contain the entire buffer ("Select all")
C-x h
47
When you Insert a buffer or file mark is set to…
the beginning of the inserted text
48
Cycle through mark ring
C-u C-SPC
49
Make region contain the current paragraph
M-h
50
Narrow buffer to the current region
C-x n n
51
Restore ("widen") buffer
C-x n w
52
Kill region ("cut")
C-w
53
Save region to kill ring without deleting ("copy")
M-w
54
exit search at the occurrence found
RET
55
return to where search started
C-g
56
If you exit search at the found occurrence, you can easily jump back to where you started with
C-x C-x
57
Search for most recently searched item
C-s C-s
58
Previous item in search history
C-s M-p
59
Next item in search history
C-s M-n
60
Guide to more commands available in incremental search
C-h k C-s
61
Query replace
M-%
62
Regular expression incremental search
C-M-s
63
prompts you for a regular expression, then displays in a separate buffer a list of all lines in the current buffer which match that regexp (as well as their line numbers). Clicking on any occurrence takes you to that line in the buffer.
M-x occur
64
Shows documentation for the command associated with any particular key
C-h k
65
Shows documentation for any particular command, by name
C-h f
66
Search for commands by keywords or regexp
C-h a
67
get a complete list of all modes running and all the keybindings they introduce
C-h m