This is the one I had made myself a while back: https://gist.github.com/didibus/f698146e551300bd86653402beec24c6
Install emacs, then git pull the Spacemacs develop branch, and use my .spacemacs
dot file.
I could add more bindings to it, but it covers the basics:, copy, paste, cut, find, replace, undo, redo, new, close, switch tab, reopen closed tab, save, save all, rename, refresh, select all/line, etc.
Let me know if you have suggestions to add to it.
Small Cheat Sheet:
- Esc - close/quit multiple different context, use that to “quit” a prompt for example
- Ctrl+Shift+p or Alt+x - Open command prompt
- Alt+m - Open actions menu (spacemacs menu)
- Alt+Enter - Open major mode actions menu (spacemacs major menu)
- Ctrl-c - copy
- Ctrl-v - paste
- Ctrl-x - cut
- Alt+v - Fancy paste, choose from copy history
- Ctrl+PageUp/PageDown - switch tab left/right
- Ctrl+Tab / Ctrl+Shift+Tab - switch tab left/right
- Ctrl+n - new file
- Ctrl+t - new tab (same as new file)
- Ctrl+w - close file
- Ctrl+Shift+w - close all other files
- Ctrl+Shift+t - reopen last closed file
- Alt+t - reopen prior closed file, choose from list
- Ctrl+s - save
- Ctrl+Shift+s - save all
- Ctrl+z - undo
- Ctrl+Shift+z or Ctrl+y - redo
- Alt+z - Fancy undo/redo, display full undo/redo tree
- f2 - rename file
- f5 - refresh file from disk
- Ctrl+a - select all
- Ctrl+l - select line
- Ctrl+f - Find in file, press Enter to go to next result and Shift-Enter to go to previous, move cursor to quit find and stay on result, press Esc to cancel search and move back to where you were
- Ctrl+Shift+f - Find in project
- Ctrl+r - replace
- Ctrl+k - find next occurrence of current selection, repeat to keep going
- Ctrl+Shift+k - find next occurrence of current selection, repeat to keep going
- Alt+a - Enter block mode, can do multi cursor, block copy/paste, etc.
- Alt+left/right/up/down - Move left/right/up/down word/line or s-expressions
- Ctrl+c d - duplicate line
- Alt+(/{/[ - Wrap selection in corresponding bracket
- Alt+r - Raise form over parent
- Alt+Shift+up/down - Expand selection up/down
- Ctrl+Shift+up/down - Move line up/down
- TAB - indent of auto-complete
- Ctrl+Enter - Send last s-expr to repl (clojure only)
- Ctrl+Enter - eval entered repl expression (cider repl only)
You need to have joker and clj-kondo on your path, and in Windows, for spell checking, you need hunspell as well, and you need to change the section about it to point to the location of your hunspell on your machine.