Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created November 12, 2020 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borkdude/6958364c88312713e62f13d8ba2b28e7 to your computer and use it in GitHub Desktop.
Save borkdude/6958364c88312713e62f13d8ba2b28e7 to your computer and use it in GitHub Desktop.
Emacs/CIDER keybindings for Calva
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+0",
"command": "paredit.slurpSexpForward",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "ctrl+right",
"command": "-paredit.slurpSexpForward",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "ctrl+shift+alt+down",
"command": "paredit.selectForwardUpSexp",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "ctrl+shift+alt+down",
"command": "-paredit.selectForwardUpSexp",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "ctrl+alt+space",
"command": "paredit.selectForwardSexp",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "ctrl+shift+alt+right",
"command": "-paredit.selectForwardSexp",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "ctrl+c ctrl+k",
"command": "calva.loadFile",
"when": "calva:connected"
},
{
"key": "ctrl+x ctrl+e",
"command": "calva.evaluateSelection",
"when": "calva:connected"
},
{
"key": "ctrl+alt+c e",
"command": "-calva.evaluateSelection",
"when": "calva:connected"
},
{
"key": "alt+s",
"command": "paredit.spliceSexp",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "ctrl+alt+s",
"command": "-paredit.spliceSexp",
"when": "editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment