clojure-mode icon indicating copy to clipboard operation
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.

โœจ Features

โšก๏ธ Lightning-fast thanks to lezer incremental parsing

๐Ÿฅค 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.