Skip to content

Instantly share code, notes, and snippets.

@vegarsti
Last active March 20, 2017 12:45
Show Gist options
  • Save vegarsti/800e3525c44ff6b408b96dbc3972cae4 to your computer and use it in GitHub Desktop.
Save vegarsti/800e3525c44ff6b408b96dbc3972cae4 to your computer and use it in GitHub Desktop.
  • save: C-x C-s (+ enter)
  • open file: C-x C-f
  • switch to buffer: C-x b
  • meta key M is escape and left alt (option)
  • C-k: kills from cursor until end of line
  • C-/ (7) -- undo!
  • C-a start of line
  • C-e start of line
  • M-f forward one word
  • M-b back one word
  • M-> and M-< move to end and start of buffer, resp.
  • M-w save to clipboard
  • M-d cut word (delete and save to clipboard)
  • C-y yank (insert)
  • C-j new line and indent
  • C-x o switch pane
  • C-x 2 split vertically
  • C-x 3 split horizontally
  • C-x 0 delete window
  • In cider:
  • C-c C-k compile current buffer
  • C-x C-e evaluate expression preceding point
  • C-c C-d C-d opens documentation for point
  • M-. and M-, nav to source code for point and close, resp.
  • C-c C-d C-a apropos search
  • M-( add parenthesis around point
  • C-> slurp right
  • C-< barf
  • C-M-f, C-M-b Move to the opening/closing parenthesis.
  • M-x delete-pair remove surrounding parentheses (?)
  • C-g quit current ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment