MicroEmacs Keyboard Shortcuts

 

Movement
F5Move to next line
Ctrl-AMove to start of line
Ctrl-F, rightarrowMove forward by characters
Ctrl-EMove to end of line
Ctrl-B, leftarrowMove backward by characters
Ctrl-N, downarrowMove forward by lines
Ctrl-P, uparrowMove backward by lines
Ctrl-V, PgDnMove forward by pages
Esc B, PgUpMove backward by pages
Esc <, Ctrl-HomeMove to start of buffer
Esc >, Ctrl-EndMove to end of buffer
Ctrl-X LMove to line number
Esc B, Ctrl-leftarrowBackup by words
Esc F, Ctrl-rightarrowAdvance by words
 
Windows
Ctrl-X N, F6Move to the next window
Ctrl-X PMove to the previous window
Ctrl-X 1Make current window only one
Ctrl-X 2Split current window
Esc N, EndMove window down
Esc P, HomeMove window up
Ctrl-X ZEnlarge display window
Esc ZShrink window
Ctrl-X TReposition window
Ctrl-LRefresh the screen
Ctrl-X DDelete a window
 
Deleting
Ctrl-X ODelete blank lines
Ctrl-D, DelForward delete
Ctrl-H, 0x7FBackward delete
Alt-F DelUndelete a character
Ctrl-JDelete a line
Esc J, Alt-F F2Undelete a line
Alt-F Ctrl-Right Arrow, Alt-F Ctrl-Left ArrowUndelete a word
Esc DDelete forward word
Esc HDelete backward word
 
Cutting/Pasting
Ctrl-KKill forward
Ctrl-Y, Ctrl-X K, F10Paste from kill buffer
Esc 9, F9Cut region to kill buffer
Esc 8, F8Copy region to kill buffer
F7, Esc .Set mark
Ctrl-X .Remove mark
Esc XSwap dot and mark
Esc WSelect word
 
Files
Alt-F NEdit next file
Alt-F RGet a file, read only
Alt-F VGet a file, read write
Alt-F WWrite a file
Alt-F UTurn off buffer changed bits
Alt-F SSave current file
Alt-F FAdjust file name
Alt-F MWrite modified files
Alt-F IInsert a file at dot
 
Exit
Ctrl-@, Ctrl-GAbort out of things
Ctrl-C, Alt-F QQuit
Alt-F X, Alt-XWrite modified files and exit
Ctrl-X (Begin macro
Ctrl-X )End macro
F12Start/End macro
Ctrl-X E, F11Execute macro
 
Search
Ctrl-SSearch forward
Ctrl-RSearch backwards
Esc RSearch and replace
Esc QQuery search and replace
F4, Alt-F F4Search
F2Search for the same string
 
C and C++
Ctrl-W, F3Toggle over parentheses
Ctrl-X ], Alt-F10increase indentation level
Ctrl-X [, Alt-F9decrease indentation level
Esc Ioptimize tabbing in line
Ctrl-X /convert /* */ to //
 
Configuration
Alt-F2display_norm_fg
Alt-F1display_norm_bg
Alt-F4display_mode_fg
Alt-F3display_mode_bg
Alt-F5display_mark_fg
Alt-F6display_mark_bg
Alt-F7display_eol_bg
Alt-CSave configuration
 
Process
Ctrl-ZRun CLI in a subjob
Ctrl-X !Run a command in a subjob
Ctrl-X #Filter buffer through program
Ctrl-X @, Alt-ZRun program and gather output
 
Buffers
Alt-F BDisplay list of buffers
Ctrl-X BSwitch a window to a buffer
Ctrl-X W, Alt-BSwitch to next buffer
 
Other
Ctrl-X FSet fill column
Ctrl-X AWord wrap line
Ctrl-X =Show the cursor position
Ctrl-TTwiddle characters
Ctrl-I, TabInsert tab
Alt-F TSet hardware tabs
Ctrl-MInsert CR-LF
Ctrl-O, Alt-F InsOpen up a blank line
Ctrl-Q, Ctrl-X QInsert literal
Esc TToggle column region mode
InsToggle insert/overwrite mode
Esc UUpper case word/region
Esc LLower case word/region
Esc CInitial capitalize word
Alt-EToggle hires mode
Alt-EToggle hires mode
Esc downarrowSet into advance mode
Esc uparrowSet into backup mode
Alt-F DFile and date stamp

 

comments powered by Disqus