Emacs keyboard shortcuts for Mac
62 default Emacs shortcuts on Mac, grouped by task.
62 shortcuts
Keys:
Files and buffers
8 shortcuts| Action | Keys |
|---|---|
| Open (find) a file | CtrlX,CtrlF |
| Save the buffer | CtrlX,CtrlS |
| Save as (write file) | CtrlX,CtrlW |
| Save all buffers | CtrlX,S |
| Switch to another buffer | CtrlX,B |
| List all buffers | CtrlX,CtrlB |
| Close (kill) a buffer | CtrlX,K |
| Quit Emacs | CtrlX,CtrlC |
Commands
5 shortcuts| Action | Keys |
|---|---|
| Run a command by name | OptionX |
| Cancel the current command | CtrlG |
| Undo | Ctrl/orCtrlX,U |
| Redo| GUI Emacs; terminals cannot send this key. | CtrlShift/ |
| Repeat or modify the next command | CtrlU |
Moving
16 shortcuts| Action | Keys |
|---|---|
| Forward one character | CtrlF |
| Back one character | CtrlB |
| Next line | CtrlN |
| Previous line | CtrlP |
| Forward one word | OptionF |
| Back one word | OptionB |
| Start of the line | CtrlA |
| End of the line | CtrlE |
| Start of the buffer | OptionShift, |
| End of the buffer | OptionShift. |
| Scroll down a screen | CtrlV |
| Scroll up a screen | OptionV |
| Recenter the screen on the cursor | CtrlL |
| Go to a line number | OptionG,G |
| Forward one paragraph | OptionShift] |
| Back one paragraph | OptionShift[ |
Editing
19 shortcuts| Action | Keys |
|---|---|
| Delete the next character | CtrlD |
| Delete (kill) the next word | OptionD |
| Delete (kill) the previous word | OptionBackspace |
| Kill to the end of the line | CtrlK |
| Set the mark (start a selection) | CtrlSpace |
| Select the whole buffer | CtrlX,H |
| Cut (kill) the selection | CtrlW |
| Copy the selection | OptionW |
| Paste (yank) | CtrlY |
| Replace the paste with an older killRight after Ctrl+Y | OptionY |
| Open a new line after the cursor | CtrlO |
| Swap two characters | CtrlT |
| Swap two words | OptionT |
| Uppercase the word | OptionU |
| Lowercase the word | OptionL |
| Capitalize the word | OptionC |
| Comment or uncomment | Option; |
| Rewrap the paragraph | OptionQ |
| Expand the word from other text | Option/ |
Search and replace
4 shortcuts| Action | Keys |
|---|---|
| Search forward as you type | CtrlS |
| Search backward as you type | CtrlR |
| Search with a regular expression | CtrlOptionS |
| Find and replace, asking each time | OptionShift5 |
Windows
5 shortcuts| Action | Keys |
|---|---|
| Split the window top and bottom | CtrlX,2 |
| Split the window side by side | CtrlX,3 |
| Go to the other window | CtrlX,O |
| Close this window | CtrlX,0 |
| Close every other window | CtrlX,1 |
Macros and help
5 shortcuts| Action | Keys |
|---|---|
| Start recording a macro | F3orCtrlX,Shift9 |
| Stop recording, or run the macro | F4 |
| What does this key do? | CtrlH,K |
| Describe a function | CtrlH,F |
| Open the Emacs tutorial | CtrlH,T |
No shortcuts match. Try fewer words, the key names only, or search every app.
These are the default GNU Emacs key bindings on Mac, from GNU Project's official list for version 30.1. Shortcuts that exist only on another system are left out here; the all-systems view shows every binding side by side.
Other systems: Emacs shortcuts for Windows, Emacs shortcuts for Linux. Or print the Emacs cheat sheet.