GNU Emacs keyboard shortcuts 

GNU Emacs    

Zeynel -
7 years ago
- Shortcuts
0
Ctrl + X then <

Scroll left

0
Ctrl + X then >

Scroll right

0
Ctrl + A

Go to line beginning

0
♦ Meta + G then G

Go to line

0
Space

Replace this one, go to next

0
Space

Complete up to one word

0
Space

Scroll forward

0
Tab

Indent current line (mode-dependent)

1
Tab

Complete as much as possible

0
S

Search nodes for regexp

0
F

Follow cross reference (return with 1)

0
Q

Quit Info

0
⤶ Enter

Exit incremental search

0
⤶ Enter

Exit query-replace

0
⤶ Enter

Complete and execute

0
D

Return to directory node

0
T

Go to top node of Info file

0
M

Select menu item by name

0
Ctrl + S

Search forward

0
Ctrl + Z

Suspend or iconify Emacs

0
Ctrl + V

Scroll to next screen

0
I

Look up a subject in the indices

0
P

Go to previous node

0
B

Beginning of node

0
Del

Undo effect of last character

0
Del

Character (delete, not kill) - backward

0
Del

Skip to next without replacing

0
Del

Scroll reverse

0
G

Go to any node by name

0
L

Return to last node you saw

0
H

Run info tutorial

0
Ctrl + F

Character - forward

0
Ctrl + D

Character (delete, not kill) - forward

0
Ctrl + N

Line - forward

0
Ctrl + O

Insert newline after point

0
Ctrl + P

Line - backward

0
N

Skip to next without replacing

0
N

Go to next node

0
Ctrl + R

Search backward

0
Ctrl + R

Enter recursive edit

0
Ctrl + Y

Yank back last thing killed

1
Ctrl + B

Character - backward

0
Ctrl + E

Go to line ending

0
Ctrl + L

Redraw garbaged screen

0
Ctrl + L

Scroll current line to center, top, bottom

0
Ctrl + G

Abort partially typed or executing command

0
Ctrl + G

Abort current search

0
Ctrl + G

Abort command

0
Ctrl + T

Transpose characters

0
U

Move up

0
Ctrl + W

Kill region

0
F10

Activate menu bar items in text terminals

0
Ctrl + K

Line (to end of) - forward

0
Y

Replace this one, go to next

0
Ctrl + Q

then char: Quoted insert

0
Ctrl + Space

Set mark here

0
Ctrl + /

Undo an unwanted change

0
?

Show possible completions

0
Ctrl + \

Enable or disable input method

Advertisement

0
!

Replace all remaining matches

0
^

Back up to the previous match

0
Num 1 - Num 9

Select menu item by number

1
Ctrl + _

Undo an unwanted change

0
♦ Meta + B

Word - backward

0
♦ Meta + A

Sentence - backward

0
♦ Meta + D

Word - forward

0
♦ Meta + K

Sentence - forward

0
Ctrl + @

Set mark here

0
Ctrl + X then O

Switch cursor to another window

0
Ctrl + X then S

Save all files

0
Ctrl + X then I

Insert contents of another file into this buffer

0
Ctrl + ♦ Meta + V

Scroll help window

0
♦ Meta + P

Select previous search string

0
♦ Meta + N

Select next later search string

1
♦ Meta + F

Word - forward

0
♦ Meta + E

Sentence - forward

0
Ctrl + X then ]

Page - forward

0
♦ Meta + M

Back to indentation

0
♦ Meta + Y

Replace last yank with previous kill

0
Ctrl + X then H

Mark entire buffer

0
Ctrl + ♦ Meta + V

Scroll other window

0
♦ Meta + Space

Put exactly one space at point

0
♦ Meta + Q

Fill paragraph

0
♦ Meta + U

Uppercase word

0
♦ Meta + P

Fetch previous minibuffer input

0
♦ Meta + N

Fetch later minibuffer input or default

0
♦ Meta + S

Regexp search forward through history

0
♦ Meta + .

Find a tag (a definition)

0
♦ Meta + -

Negative argument

-1
Ctrl + X then Ctrl + F

Read a file into Emacs

0
Ctrl + X then Ctrl + S

Save a file back to disk

1
Ctrl + X then Ctrl + V

Replace this file with another file

0
Ctrl + X then Ctrl + W

Write buffer to specified file

1
Ctrl + X then Ctrl + Q

Toggle read only status of buffer

1
Ctrl + X then Ctrl + C

Exit Emacs completely

0
Ctrl + X then 1

Remove help window

0
Ctrl + H then A

Show commands matching a string

0
Ctrl + H then K

Describe the function a key runs

0
Ctrl + H then F

Describe a function

0
Ctrl + H then M

Get mode specific information

0
Ctrl + X then Esc then Esc

Edit and repeat the last command that used the minibuffer

0
Ctrl + X then B

Select another buffer

0
Ctrl + X then Ctrl + B

List all buffers

0
Ctrl + X then K

Kill a buffer

0
♦ Meta + T

Transpose words

0
Ctrl + X then Ctrl + T

Transpose lines

0
Ctrl + ♦ Meta + T

Transpose sexps

1
♦ Meta + $

Check spelling of current word

0
♦ Meta + X

(then ispell-region) Check spelling of all words in region

0
♦ Meta + X

(then ispell-buffer) Check spelling of entire buffer

0
♦ Meta + X

(then flyspell-mode) Toggle on-the-fly spell checking

0
Ctrl + U then ♦ Meta + .

Find next occurence of a tag

0
♦ Meta + X

(then visit-tags-table) Specify new tags file

0
♦ Meta + X

(then tags-search) Regexp search on all files in tags table

-1
♦ Meta + X

(then tags-query-replace) Run query-replace on all the files

0
♦ Meta + ,

Continue last tags search on query-replace

0
♦ Meta + !

Execute a shell command

0
♦ Meta + &

Execute a shell command asynchronously

0
♦ Meta + |

Run a shell command on the region

0
♦ Meta + X

(then type shell) Start a shell window *shell*

0
Ctrl + X then R then R

Copy rectangle to register

0
Ctrl + X then R then K

Kill rectangle

0
Ctrl + X then R then Y

Yank rectangle

0
Ctrl + X then R then O

Open rectangle, shifting text right

0
Ctrl + X then R then C

Black out rectangle

0
Ctrl + X then R then T

Prefix each line with string

0
Ctrl + X then A then G

Add global abbrev

0
Ctrl + X then A then L

Add mode-local abbrev

0
Ctrl + X then A then I then G

Add global expansion for this abbrev

0
Ctrl + X then A then I then L

Add mode-local expansion for this abbrev

0
Ctrl + X then A then E

Explicitly expand abbrev

0
♦ Meta + /

Expand previous word dynamically

0
Ctrl + U then Num 0 - Num 9

Numeric argument

0
Ctrl + H then I

Enter the Info documentation reader

0
Ctrl + H then S

Find specified function or variable in Info

0
Ctrl + X then R then S

Save region in register

0
Ctrl + X then R then I

Insert register contents into buffer

0
Ctrl + X then R then Space

Save value of point in register

0
Ctrl + X then R then J

Jump to point saved in register

0
Ctrl + X then (

Start defining a keyboard macro

0
Ctrl + X then )

End keyboard macro definition

0
Ctrl + X then E

Eappend to last keyboard macro

0
♦ Meta + X

(then name-last-kbd-macro) name last keyboard macro

0
♦ Meta + X

(then insert-kbd-macro) Instert Lisp definition in buffer

0
Ctrl + X then Ctrl + E

Eval sexp before point

0
Ctrl + ♦ Meta + X

Eval current defun

0
♦ Meta + X

(then eval-region) Eval region

0
♦ Meta + :

Read and eval minibuffer

0
♦ Meta + X

(then load-library) load a Lisp library from load-path

0
♦ Meta + X

(then customize) Customize variables and faces


Share this page on:
Is this page helpful?
0 0

What is your favorite GNU Emacs hotkey? Do you have any useful tips for it? Let other users know below.


Only registered users can post links.
 
No comments yet. Ask, or type the first one!

Latest articles