Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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