Skip to content

Instantly share code, notes, and snippets.

@yogidevbear
Last active March 24, 2025 15:57
Show Gist options
  • Save yogidevbear/30b045e019b771a7555e6601e33838d2 to your computer and use it in GitHub Desktop.
Save yogidevbear/30b045e019b771a7555e6601e33838d2 to your computer and use it in GitHub Desktop.

Revisions

  1. yogidevbear revised this gist Jun 8, 2018. 1 changed file with 52 additions and 52 deletions.
    104 changes: 52 additions & 52 deletions emacs-keybinding-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -3,55 +3,55 @@
    | **C** | Ctrl |
    | **M** | Alt |
    | | **Helper functions:** |
    **C-h k key-binding** | Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing *C-h k*.
    **C-h f** | Describe function.
    . | **Cider/REPL bindings:**
    **M-x cider-jack-in** | Jack into the REPL
    . | **Window key bindings:**
    **C-x o** | Switch cursor to another window. Try this now to switch between your Clojure file and the REPL.
    **C-x 1** | Delete all other windows, leaving only the current window in the frame. This doesn’t close your buffers, and it won’t cause you to lose any work.
    **C-x 2** | Split frame above and below.
    **C-x 3** | Split frame side by side.
    **C-x 0** | Delete current window. In Emacs, editing takes place in buffers.
    . | **Buffer key bindings**
    **C-x b** | To switch to a buffer, use **C-x b** and enter the buffer name in the minibuffer.
    ... | To create a new buffer, use **C-x b** and enter a new buffer name.
    **C-x C-f** | To open a file, use **C-x C-f** and navigate to the file.
    ... | To create a new file, use **C-x C-f** and enter the new file’s path. When you save the buffer, Emacs will create the file on the filesystem.
    **C-x C-s** | To save a buffer to a file.
    . | **Navigation:**
    **C-a** | Move to beginning of line.
    **M-m** | Move to first non-whitespace character on the line.
    **C-e** | Move to end of line.
    **C-f** | Move forward one character.
    **C-b** | Move backward one character.
    **M-f** | Move forward one word (I use this a lot).
    **M-b** | Move backward one word (I use this a lot, too).
    **C-s** | Regex search for text in current buffer and move to it. Press **C-s** again to move to next match.
    **C-r** | Same as **C-s**, but search in reverse.
    **M-<** | Move to beginning of buffer.
    **M->** | Move to end of buffer.
    **M-g g** | Go to line.
    . | **Kill/yank key bindings:**
    **C-spc** | Selection of regions
    **C-w** | Kill region.
    **M-w** | Copy region to kill ring.
    **C-y** | Yank.
    **M-y** | Cycle through kill ring after yanking.
    **M-d** | Kill word.
    **C-k** | Kill line.
    . | **Editing / Helping:**
    **Tab** | Indent line.
    **C-j** | New line and indent, equivalent to enter followed by tab.
    **M-/** | Hippie expand; cycles through possible expansions of the text before point.
    **M-\\** | Delete all spaces and tabs around point. (I use this one a lot.)
    . | **Clojure Buffer Key Bindings:**
    **C-c M-n** | Switch to namespace of current buffer.
    **C-x C-e** | Evaluate expression immediately preceding point.
    **C-c C-k** | Compile current buffer.
    **C-c C-d C-d** | Display documentation for symbol under point.
    **M-.** and **M-,** | Navigate to source code for symbol under point and return to your original buffer.
    **C-c C-d C-a** | Apropros search; find arbitrary text across function names and documentation.
    . | **CIDER Buffer Key Bindings**
    **C-↑, C-↓** | Cycle through REPL history.
    **C-enter** | Close parentheses and evaluate.
    | **C-h k key-binding** | Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing *C-h k*. |
    | **C-h f** | Describe function. |
    | | **Cider/REPL bindings:** |
    | **M-x cider-jack-in** | Jack into the REPL |
    | | **Window key bindings:** |
    **C-x o** | Switch cursor to another window. Try this now to switch between your Clojure file and the REPL. |
    **C-x 1** | Delete all other windows, leaving only the current window in the frame. This doesn’t close your buffers, and it won’t cause you to lose any work. |
    **C-x 2** | Split frame above and below. |
    **C-x 3** | Split frame side by side. |
    **C-x 0** | Delete current window. In Emacs, editing takes place in buffers. |
    | | **Buffer key bindings** |
    | **C-x b** | To switch to a buffer, use **C-x b** and enter the buffer name in the minibuffer. |
    | ... | To create a new buffer, use **C-x b** and enter a new buffer name. |
    | **C-x C-f** | To open a file, use **C-x C-f** and navigate to the file. |
    | ... | To create a new file, use **C-x C-f** and enter the new file’s path. When you save the buffer, Emacs will create the file on the filesystem. |
    | **C-x C-s** | To save a buffer to a file. |
    | | **Navigation:** |
    | **C-a** | Move to beginning of line. |
    | **M-m** | Move to first non-whitespace character on the line. |
    | **C-e** | Move to end of line. |
    | **C-f** | Move forward one character. |
    | **C-b** | Move backward one character. |
    | **M-f** | Move forward one word (I use this a lot). |
    | **M-b** | Move backward one word (I use this a lot, too). |
    | **C-s** | Regex search for text in current buffer and move to it. Press **C-s** again to move to next match. |
    | **C-r** | Same as **C-s**, but search in reverse. |
    | **M-<** | Move to beginning of buffer. |
    | **M->** | Move to end of buffer. |
    | **M-g g** | Go to line. |
    | | **Kill/yank key bindings:** |
    | **C-spc** | Selection of regions |
    | **C-w** | Kill region. |
    | **M-w** | Copy region to kill ring. |
    | **C-y** | Yank. |
    | **M-y** | Cycle through kill ring after yanking. |
    | **M-d** | Kill word. |
    | **C-k** | Kill line. |
    | | **Editing / Helping:** |
    | **Tab** | Indent line. |
    | **C-j** | New line and indent, equivalent to enter followed by tab. |
    | **M-/** | Hippie expand; cycles through possible expansions of the text before point. |
    | **M-\\** | Delete all spaces and tabs around point. (I use this one a lot.) |
    | | **Clojure Buffer Key Bindings:** |
    | **C-c M-n** | Switch to namespace of current buffer. |
    | **C-x C-e** | Evaluate expression immediately preceding point. |
    | **C-c C-k** | Compile current buffer. |
    | **C-c C-d C-d** | Display documentation for symbol under point. |
    | **M-.** and **M-,** | Navigate to source code for symbol under point and return to your original buffer. |
    | **C-c C-d C-a** | Apropros search; find arbitrary text across function names and documentation. |
    | | **CIDER Buffer Key Bindings** |
    | **C-↑, C-↓** | Cycle through REPL history. |
    | **C-enter** | Close parentheses and evaluate. |
  2. yogidevbear revised this gist Jun 8, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions emacs-keybinding-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    **Keys** | **Description**
    --- | ---
    **C** | Ctrl
    **M** | Alt
    . | **Helper functions:**
    | **Keys** | **Description** |
    | --- | --- |
    | **C** | Ctrl |
    | **M** | Alt |
    | | **Helper functions:** |
    **C-h k key-binding** | Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing *C-h k*.
    **C-h f** | Describe function.
    . | **Cider/REPL bindings:**
  3. yogidevbear revised this gist Jun 8, 2018. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions emacs-keybinding-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -2,24 +2,24 @@
    --- | ---
    **C** | Ctrl
    **M** | Alt
    * * | **Helper functions:**
    . | **Helper functions:**
    **C-h k key-binding** | Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing *C-h k*.
    **C-h f** | Describe function.
    ... | **Cider/REPL bindings:**
    . | **Cider/REPL bindings:**
    **M-x cider-jack-in** | Jack into the REPL
    ... | **Window key bindings:**
    . | **Window key bindings:**
    **C-x o** | Switch cursor to another window. Try this now to switch between your Clojure file and the REPL.
    **C-x 1** | Delete all other windows, leaving only the current window in the frame. This doesn’t close your buffers, and it won’t cause you to lose any work.
    **C-x 2** | Split frame above and below.
    **C-x 3** | Split frame side by side.
    **C-x 0** | Delete current window. In Emacs, editing takes place in buffers.
    ... | **Buffer key bindings**
    . | **Buffer key bindings**
    **C-x b** | To switch to a buffer, use **C-x b** and enter the buffer name in the minibuffer.
    ... | To create a new buffer, use **C-x b** and enter a new buffer name.
    **C-x C-f** | To open a file, use **C-x C-f** and navigate to the file.
    ... | To create a new file, use **C-x C-f** and enter the new file’s path. When you save the buffer, Emacs will create the file on the filesystem.
    **C-x C-s** | To save a buffer to a file.
    ... | **Navigation:**
    . | **Navigation:**
    **C-a** | Move to beginning of line.
    **M-m** | Move to first non-whitespace character on the line.
    **C-e** | Move to end of line.
    @@ -32,26 +32,26 @@
    **M-<** | Move to beginning of buffer.
    **M->** | Move to end of buffer.
    **M-g g** | Go to line.
    ... | **Kill/yank key bindings:**
    . | **Kill/yank key bindings:**
    **C-spc** | Selection of regions
    **C-w** | Kill region.
    **M-w** | Copy region to kill ring.
    **C-y** | Yank.
    **M-y** | Cycle through kill ring after yanking.
    **M-d** | Kill word.
    **C-k** | Kill line.
    ... | **Editing / Helping:**
    . | **Editing / Helping:**
    **Tab** | Indent line.
    **C-j** | New line and indent, equivalent to enter followed by tab.
    **M-/** | Hippie expand; cycles through possible expansions of the text before point.
    **M-\\** | Delete all spaces and tabs around point. (I use this one a lot.)
    ... | **Clojure Buffer Key Bindings:**
    . | **Clojure Buffer Key Bindings:**
    **C-c M-n** | Switch to namespace of current buffer.
    **C-x C-e** | Evaluate expression immediately preceding point.
    **C-c C-k** | Compile current buffer.
    **C-c C-d C-d** | Display documentation for symbol under point.
    **M-.** and **M-,** | Navigate to source code for symbol under point and return to your original buffer.
    **C-c C-d C-a** | Apropros search; find arbitrary text across function names and documentation.
    ... | **CIDER Buffer Key Bindings**
    . | **CIDER Buffer Key Bindings**
    **C-↑, C-↓** | Cycle through REPL history.
    **C-enter** | Close parentheses and evaluate.
  4. yogidevbear revised this gist Jun 8, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion emacs-keybinding-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    --- | ---
    **C** | Ctrl
    **M** | Alt
    ... | **Helper functions:**
    * * | **Helper functions:**
    **C-h k key-binding** | Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing *C-h k*.
    **C-h f** | Describe function.
    ... | **Cider/REPL bindings:**
  5. yogidevbear revised this gist Jun 8, 2018. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions emacs-keybinding-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -2,24 +2,24 @@
    --- | ---
    **C** | Ctrl
    **M** | Alt
    | **Helper functions:**
    ... | **Helper functions:**
    **C-h k key-binding** | Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing *C-h k*.
    **C-h f** | Describe function.
    | **Cider/REPL bindings:**
    ... | **Cider/REPL bindings:**
    **M-x cider-jack-in** | Jack into the REPL
    | **Window key bindings:**
    ... | **Window key bindings:**
    **C-x o** | Switch cursor to another window. Try this now to switch between your Clojure file and the REPL.
    **C-x 1** | Delete all other windows, leaving only the current window in the frame. This doesn’t close your buffers, and it won’t cause you to lose any work.
    **C-x 2** | Split frame above and below.
    **C-x 3** | Split frame side by side.
    **C-x 0** | Delete current window. In Emacs, editing takes place in buffers.
    | **Buffer key bindings**
    ... | **Buffer key bindings**
    **C-x b** | To switch to a buffer, use **C-x b** and enter the buffer name in the minibuffer.
    | To create a new buffer, use **C-x b** and enter a new buffer name.
    ... | To create a new buffer, use **C-x b** and enter a new buffer name.
    **C-x C-f** | To open a file, use **C-x C-f** and navigate to the file.
    | To create a new file, use **C-x C-f** and enter the new file’s path. When you save the buffer, Emacs will create the file on the filesystem.
    ... | To create a new file, use **C-x C-f** and enter the new file’s path. When you save the buffer, Emacs will create the file on the filesystem.
    **C-x C-s** | To save a buffer to a file.
    | **Navigation:**
    ... | **Navigation:**
    **C-a** | Move to beginning of line.
    **M-m** | Move to first non-whitespace character on the line.
    **C-e** | Move to end of line.
    @@ -32,26 +32,26 @@
    **M-<** | Move to beginning of buffer.
    **M->** | Move to end of buffer.
    **M-g g** | Go to line.
    | **Kill/yank key bindings:**
    ... | **Kill/yank key bindings:**
    **C-spc** | Selection of regions
    **C-w** | Kill region.
    **M-w** | Copy region to kill ring.
    **C-y** | Yank.
    **M-y** | Cycle through kill ring after yanking.
    **M-d** | Kill word.
    **C-k** | Kill line.
    | **Editing / Helping:**
    ... | **Editing / Helping:**
    **Tab** | Indent line.
    **C-j** | New line and indent, equivalent to enter followed by tab.
    **M-/** | Hippie expand; cycles through possible expansions of the text before point.
    **M-\\** | Delete all spaces and tabs around point. (I use this one a lot.)
    | **Clojure Buffer Key Bindings:**
    ... | **Clojure Buffer Key Bindings:**
    **C-c M-n** | Switch to namespace of current buffer.
    **C-x C-e** | Evaluate expression immediately preceding point.
    **C-c C-k** | Compile current buffer.
    **C-c C-d C-d** | Display documentation for symbol under point.
    **M-.** and **M-,** | Navigate to source code for symbol under point and return to your original buffer.
    **C-c C-d C-a** | Apropros search; find arbitrary text across function names and documentation.
    | **CIDER Buffer Key Bindings**
    ... | **CIDER Buffer Key Bindings**
    **C-↑, C-↓** | Cycle through REPL history.
    **C-enter** | Close parentheses and evaluate.
  6. yogidevbear created this gist Jun 8, 2018.
    57 changes: 57 additions & 0 deletions emacs-keybinding-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    **Keys** | **Description**
    --- | ---
    **C** | Ctrl
    **M** | Alt
    | **Helper functions:**
    **C-h k key-binding** | Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing *C-h k*.
    **C-h f** | Describe function.
    | **Cider/REPL bindings:**
    **M-x cider-jack-in** | Jack into the REPL
    | **Window key bindings:**
    **C-x o** | Switch cursor to another window. Try this now to switch between your Clojure file and the REPL.
    **C-x 1** | Delete all other windows, leaving only the current window in the frame. This doesn’t close your buffers, and it won’t cause you to lose any work.
    **C-x 2** | Split frame above and below.
    **C-x 3** | Split frame side by side.
    **C-x 0** | Delete current window. In Emacs, editing takes place in buffers.
    | **Buffer key bindings**
    **C-x b** | To switch to a buffer, use **C-x b** and enter the buffer name in the minibuffer.
    | To create a new buffer, use **C-x b** and enter a new buffer name.
    **C-x C-f** | To open a file, use **C-x C-f** and navigate to the file.
    | To create a new file, use **C-x C-f** and enter the new file’s path. When you save the buffer, Emacs will create the file on the filesystem.
    **C-x C-s** | To save a buffer to a file.
    | **Navigation:**
    **C-a** | Move to beginning of line.
    **M-m** | Move to first non-whitespace character on the line.
    **C-e** | Move to end of line.
    **C-f** | Move forward one character.
    **C-b** | Move backward one character.
    **M-f** | Move forward one word (I use this a lot).
    **M-b** | Move backward one word (I use this a lot, too).
    **C-s** | Regex search for text in current buffer and move to it. Press **C-s** again to move to next match.
    **C-r** | Same as **C-s**, but search in reverse.
    **M-<** | Move to beginning of buffer.
    **M->** | Move to end of buffer.
    **M-g g** | Go to line.
    | **Kill/yank key bindings:**
    **C-spc** | Selection of regions
    **C-w** | Kill region.
    **M-w** | Copy region to kill ring.
    **C-y** | Yank.
    **M-y** | Cycle through kill ring after yanking.
    **M-d** | Kill word.
    **C-k** | Kill line.
    | **Editing / Helping:**
    **Tab** | Indent line.
    **C-j** | New line and indent, equivalent to enter followed by tab.
    **M-/** | Hippie expand; cycles through possible expansions of the text before point.
    **M-\\** | Delete all spaces and tabs around point. (I use this one a lot.)
    | **Clojure Buffer Key Bindings:**
    **C-c M-n** | Switch to namespace of current buffer.
    **C-x C-e** | Evaluate expression immediately preceding point.
    **C-c C-k** | Compile current buffer.
    **C-c C-d C-d** | Display documentation for symbol under point.
    **M-.** and **M-,** | Navigate to source code for symbol under point and return to your original buffer.
    **C-c C-d C-a** | Apropros search; find arbitrary text across function names and documentation.
    | **CIDER Buffer Key Bindings**
    **C-↑, C-↓** | Cycle through REPL history.
    **C-enter** | Close parentheses and evaluate.