clojure-mode
clojure-mode copied to clipboard
Clojure/Script mode for CodeMirror 6
Clojure/Script mode for CodeMirror 6
Enabling a decent Clojure/Script editor experience in the browser. Built for and by Nextjournal.
- ๐คนโโ๏ธ Live demo with in-browser eval
- ๐ข Try it in Nextjournal
- ๐ฆ Use it in your project
โจ Features
โก๏ธ Lightning-fast thanks to lezer incremental parsing
- Try pasting
clojure/core.clj
into the live demo.
๐ฅค Slurping & ๐คฎ Barfing
- Forward: Ctrl + โ / โ or Mod + โง + J / K
- Backward: Ctrl + Alt + โ / โ
๐ Semantic Selections
- Expand/Contract: Alt + โ / โ or Mod + 1 / 2
๐ง Prepared for evaluation
- At Cursor: Alt + โ
- Top-level form: Alt + โง + โ
- Cell: Mod + โ
๐งน Autoformatting following Tonskyโs Better Clojure Formatting
๐น And lots of more useful key bindings
๐ฆ Use it in your project
Include it in your deps.edn
{:deps {nextjournal.clojure-mode {:git/url "https://github.com/nextjournal/clojure-mode"
:sha "SHA"}}}
๐ Development Setup
- Install JS dependencies:
yarn install
- Start dev server:
yarn watch
- Open the demo page at http://localhost:8002/
โ๏ธ License
Licensed under the EPL License, Copyright ยฉ 2020-present Nextjournal GmbH.
See LICENSE for more information.