GNU Emacs keyboard shortcuts 

GNU Emacs    

Zeynel -
7 years ago
- Shortcuts
0
Ctrl + X then 5 then 1

Delete all other windows (for frame)

0
Ctrl + X then 2

Split window, above and below

0
♦ Meta + O

Set face

Advertisement

0
♦ Meta + U

Uppercase word

0
♦ Meta + L

Lowercase word

0
♦ Meta + ^

Join line with previous (with arg, next)

0
♦ Meta + \

Delete all white space around point

0
♦ Meta + Space

Put exactly one space at point

0
♦ Meta + Q

Fill paragraph

0
Ctrl + X then F

Set fill column to arg

0
?

Show possible completions

0
♦ Meta + P

Fetch previous minibuffer input

0
♦ Meta + N

Fetch later minibuffer input or default

The following keys are defined in the minibuffer.
0
Ctrl + X then 0

Delete this window

0
Ctrl + X then 5 then 0

Delete this window (for frame)

0
Ctrl + X then 3

Split window, side by side

0
Ctrl + ♦ Meta + V

Scroll other window

0
Ctrl + X then O

Switch cursor to another window

0
Ctrl + X then 5 then O

Switch cursor to another window (for frame)

0
Ctrl + X then 4 then B

Select buffer in other window

0
Ctrl + X then 5 then B

Select buffer in other window (for frame)

0
Ctrl + X then 4 then Ctrl + O

Display buffer in other window

0
Ctrl + X then 5 then Ctrl + O

Display buffer in other window (for frame)

0
Ctrl + X then 4 then F

Find file in other window

0
Ctrl + X then 5 then F

Find file in other window (for frame)

0
Ctrl + X then 4 then R

Find file read-only in other window

0
Ctrl + X then 5 then R

Find file read-only in other window (for frame)

0
Ctrl + X then 4 then D

Run Dired in other window

0
Ctrl + X then 5 then D

Run Dired in other window (for frame)

0
Ctrl + X then 4 then .

Find tag in other window

0
Ctrl + X then 5 then .

Find tag in other window (for frame)

0
Ctrl + X then ^

Grow window taller

0
Ctrl + X then {

Shrink window smaller

0
Ctrl + X then }

Grow window wider

0
♦ Meta + Y

Replace last yank with previous kill

0
Ctrl + @

Set mark here

0
or Ctrl + Space
0
Ctrl + X then Ctrl + X

Exchange point and mark

0
♦ Meta + @

Set mark arg words away

0
♦ Meta + H

Mark paragraph

0
Ctrl + X then Ctrl + P

Mark page

0
Ctrl + ♦ Meta + @

Mark sexp

0
Ctrl + ♦ Meta + H

Mark function

0
Ctrl + X then H

Mark entire buffer

0
♦ Meta + % then ♦ Meta + X

(then query-replace-regexp) Interactively replace a text string using regular expressions

Valid responses in query-replace mode are replace, skip, back up and exit.
0
Ctrl + X then ]

Page - forward

0
Ctrl + ♦ Meta + A

function - backward

0
Ctrl + ♦ Meta + E

function - forward

0
Ctrl + V

Scroll to next screen

0
Ctrl + A

Go to line beginning

0
Ctrl + E

Go to line ending

0
♦ Meta + A

Sentence - backward

Advertisement

0
♦ Meta + E

Sentence - forward

0
♦ Meta + }

Paragraph - forward

0
Ctrl + P

Line - backward

0
♦ Meta + G then G

Go to line

0
♦ Meta + G then C

Go to character

0
♦ Meta + M

Back to indentation

0
Del

Character (delete, not kill) - backward

0
Ctrl + D

Character (delete, not kill) - forward

0
♦ Meta + Del

Word - backward

0
♦ Meta + D

Word - forward

0
♦ Meta + 0 then Ctrl + K

Line (to end of) - backward

0
Ctrl + K

Line (to end of) - forward

0
Ctrl + X then Del

Sentence - backward

0
♦ Meta + K

Sentence - forward

0
♦ Meta + - then Ctrl + ♦ Meta + K

sexp - backward

0
Ctrl + ♦ Meta + K

sexp - forward

0
Ctrl + W

Kill region

0
Ctrl + X then I

Insert contents of another file into this buffer

0
Ctrl + X then Ctrl + W

Write buffer to specified file

0
Ctrl + H then M

Get mode specific information

0
Ctrl + G

Abort partially typed or executing command

0
♦ Meta + X

then type recover-session to recover files lost by a system crash

0
Ctrl + X then U

Undo an unwanted change

The help system is simple. Type Ctrl + H or F1 and follow the directions. If you are a first time user, type Ctrl + H for a tutorial.
0
Ctrl + X then 1

Remove help window

0
♦ Meta + N

Select next later search string

0
⤶ Enter

Exit incremental search

0
Del

Undo effect of last character

0
Ctrl + G

Abort current search

Use Ctrl + S or Ctrl + R again to repeat the search in either direction. If Emacs is still searching, Ctrl + G cancels only the part not matched.
0
Ctrl + ♦ Meta + R

Reverse regular expression search

0
♦ Meta + B

Word - backward

0
Ctrl + H then K

Describe the function a key runs

0
Ctrl + /

Undo an unwanted change

0
♦ Meta + X

then type revert-buffer to restore a buffer to its original contents

0
Ctrl + L

Redraw garbaged screen


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