UP | HOME

Emacs Cheatsheet

Table of Contents

Cancel: C-g

Key Description
C Control
M Meta (alt)
S Shift
s Super (Windows)

Keybinds

Action Bind
Open File (new buffer) C-x C-f
Close Buffer (kill) C-x k
Movement  
Next Line C-n
Previous Line C-p
Forward Char/Word C-f/M-f
Back Char/Word C-b/M-b
Page Buffer Down C-v
Page Buffer Up M-v
Center Buffer (Vertical) C-l
Beginning of Line/Sentence C-a/M-a
End of Line/Sentence C-e/M-e
Misc  
Mult Times (ex '8 Fwd') C-u 8 C-f
   

Movement

Move Headings: M-LEFT, M-RIGHT, M-UP, M-DOWN

Buffer

Action Keybind
Reload Buffer from File M-x revert-file
   

Copy/Paste

My understanding is that in Emacs things get entered into the Kill Ring (copy buffer) and then Yanked (paste).

  Keybind
Cut C-w
Copy M-w
Paste C-y

Kill

  • Cursor to EOL: C-k
  • Balanced Expression C-M-k

Indent

What I want: How do:
Format Whole file C-x h -> C-M-\

Insert Sections/Templates

Action Keybind
Code C-c C-, s
Raw HTML C-c C-, h

Tables

Action Keybind
Import CSV M-x org-table-import file.csv
   

Misc

Create Code Block: C-c C-, s

POV Ray Plugin

What I want to happen: Keybind (command)
Render Current File C-c C-c r
Display C-c C-c e (ext), C-c C-c v (int)
Auto Complete M-/

C++

Action Keybind
Execute Snippet C-c C-c

Split Windows / Multiple Buffers

What I want: Keybind
Vertical Split C-x 2
Horizontal Split C-x 3
Cycle Buffers C-x o
Close Current Buffer C-x 0
Close Other Buffers C-x 1
Scroll Next Window Up C-M-v
Scross Next Window Down C-M-S-v
Re-Center Next Window C-M-S-l

Inserting/Scheduling Deadlines/Timestamps

  Keybind
Timestamp C-u C-u C-c .
Timestamp (prompt for time) C-u C-c . RET
Inactive Timestamp C-u C-u C-c !
Inactive Timestamp (prompt) C-u C-C !

Org Mode

Publish

Publish to HTML (and other formats) via Org Mode.

Publishing is configured via:

(setq org-publish-project)

HTML Blocks are config'd by:

#+begin_export html
<marquee>special code</marquee>
#+end_export
Action Keybind
Export C-c C-e P p
   

Date: 2025-12-21 Sun 00:00

Author: Josh J

Created: 2026-01-03 Sat 17:28

Validate