7

Clojure/Script mode for CodeMirror 6

 2 years ago
source link: https://nextjournal.github.io/clojure-mode/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Try evaluating any of these forms with Alt + ⏎ !

In-browser eval is powered by Sci.

(comment
(fizz-buzz 1)
(fizz-buzz 3)
(fizz-buzz 5)
(fizz-buzz 15)
(fizz-buzz 17)
(fizz-buzz 42))
(defn fizz-buzz [n]
(condp (fn [a b] (zero? (mod b a))) n
15 "fizzbuzz"
3 "fizz"
5 "buzz"
#'user/fizz-buzz
CommandKeybindingAlternate BindingDescription
barf-backwardCtrl + Alt + →Shrink collection backwards by one form
barf-forwardCtrl + ←Ctrl + Shift + jShrink collection forwards by one form
enter-and-indentEnterInsert newline and indent
eval-at-cursorAlt + EnterEvaluates form at cursor
eval-cellCtrl + EnterEvaluate cell
eval-top-levelAlt + Shift + EnterEvaluates top-level form at cursor
indentTabIndent document (or selection)
killCtrl + kRemove all forms from cursor to end of line
nav-leftAlt + ←Move cursor one unit to the left (shift: selects this region)
nav-select-leftShift + Alt + ←
nav-rightAlt + →Move cursor one unit to the right (shift: selects this region)
nav-select-rightShift + Alt + →
selection-growAlt + ↑Ctrl + 1Grow selections
selection-returnAlt + ↓Ctrl + 2Shrink selections
slurp-backwardCtrl + Alt + ←Grow collection backwards by one form
slurp-forwardCtrl + →Ctrl + Shift + kExpand collection to include form to the right
unwrapAlt + sLift contents of collection into parent

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK