Skip to content

Instantly share code, notes, and snippets.

@rajcspsg
Created May 22, 2023 03:47
Show Gist options
  • Save rajcspsg/0dba2960789c7da49553cf5bacbab825 to your computer and use it in GitHub Desktop.
Save rajcspsg/0dba2960789c7da49553cf5bacbab825 to your computer and use it in GitHub Desktop.
System Crafters - structural editing
<h1> <b> <center> Paredit </center></b> </h1>
|---------------------------------------------------------------------------------------------------|
|Shortcut | Description |
|-----------|---------------------------------------------------------------------------------------|
| C-M-u |Moves the cursor one level up to parent form |
| C-M-k |Kills the whole form |
| DEL |deletes the character before the cursor |
| C-d |deletes the next character after the cursor |
| C-M-\ |re-indent the form |
| M-" |converts the word to string |
| M-( |enclose the word into s-exp |
| C-M-f |navigates within the form of s-exp |
| C-M-@ |mark the whole s-exp |
| M- up |paredit-splice-expression (deletes whatever to left and combines with outer expression)|
| M-down |deletes whatever to right and combines the outer expression |
| M-S |splits the s-exp into two |
| M-J |joins the s-exp |
| M-x | paredit-convolute-sexp. Moves the current sexp before cursor as parent to parent form |
| M-x | paredit-focus-to-defun. Navigates to defenition of function |
-----------------------------------------------------------------------------------------------------
<h1> <b> <center> Vanilla Emacs </center></b> </h1>
|---------------------------------------------------------------------------------------------------|
|Shortcut | Description |
|-----------|---------------------------------------------------------------------------------------|
| C-M-d |Navigates to child sexp of current form |
| C-M-a |Navigates to the beginning of top level sexp |
| C-M-e |Navigates to the end of top level sexp |
| C-M-b |Navigates to previous element sexp |
-----------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment