Skip to content

vadelabs/clojure-mode

 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 82.1%
  • HTML 10.2%
  • CSS 7.7%