emacs Flashcards

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
Q

Kill from the cursor position to end of line

A

C-k

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

Kill to the end of the current sentence

A

M-k

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

Starting mark to kill

A

C-@

28
Q

Ending mark to kill

A

C-w

29
Q

kill the text on the line

A

C-k

30
Q

yank the text back

A

C-y

31
Q

replace yanked text with the previous kill

A

M-y

32
Q

undo

A

C-/

C-_

C-x u

33
Q

Find a file

A

C-x C-f

34
Q

Save the file

A

C-x C-s

35
Q

List buffers

A

C-x C-b

36
Q

Save some buffers

A

C-x s

37
Q

Move forward 64 characters

A

C-u 64 C-f

M-6 M-4 C-f

C-u C-u C-u C-f

38
Q

Jump to specified line

A

M-g g

39
Q

Incremental search forward

A

C-s

40
Q

Incremental search backward

A

C-r

41
Q

Set mark to the current location

A

C-SPC

42
Q

Swap point and mark

A

C-x C-x

43
Q

When you

jump to either end of the buffer (M-< or M->)

mark is set to…

A

your previous location

44
Q

When you

Exit incremental search

mark is set to…

A

where you began searching

45
Q

When you

Yank text

mark is set to…

A

the beginning of the yanked region

46
Q

Make region contain the entire buffer (“Select all”)

A

C-x h

47
Q

When you

Insert a buffer or file

mark is set to…

A

the beginning of the inserted text

48
Q

Cycle through mark ring

A

C-u C-SPC

49
Q

Make region contain the current paragraph

A

M-h

50
Q

Narrow buffer to the current region

A

C-x n n

51
Q

Restore (“widen”) buffer

A

C-x n w

52
Q

Kill region (“cut”)

A

C-w

53
Q

Save region to kill ring without deleting (“copy”)

A

M-w

54
Q

exit search at the occurrence found

A

RET

55
Q

return to where search started

A

C-g

56
Q

If you exit search at the found occurrence, you can easily jump back to where you started with

A

C-x C-x

57
Q

Search for most recently searched item

A

C-s C-s

58
Q

Previous item in search history

A

C-s M-p

59
Q

Next item in search history

A

C-s M-n

60
Q

Guide to more commands available in incremental search

A

C-h k C-s

61
Q

Query replace

A

M-%

62
Q

Regular expression incremental search

A

C-M-s

63
Q

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.

A

M-x occur

64
Q

Shows documentation for the command associated with any particular key

A

C-h k

65
Q

Shows documentation for any particular command, by name

A

C-h f

66
Q

Search for commands by keywords or regexp

A

C-h a

67
Q

get a complete list of all modes running and all the keybindings they introduce

A

C-h m