SignSpice / minimal-cljs-esm-for-emacs-ng

a refreshingly boring example repo to get cljs in your emacs-ng

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the gist

emacs-ng has denojs. you have cljs. denojs wants ecmascript modules. shadow-cljs allows you to emit cljs as ecmascript modules: here is an incredibly boring example how!

steps

(implicit step of being a self conscious sentient being with agency and capacity to communicate)

1. get clojure

I defer to: [https://clojure.org/guides/getting_started]

2. yoink this repo

3. cd into the directory you pulled this repo and run

clojure -M:cljs watch app

This will start a file watcher that will re-emit your cljs upon each save.

open boring.js

i.e.

(find-file "./boring.js")

run `eval-js-buffer`

run through the streets chanting ‘I did it’

About

a refreshingly boring example repo to get cljs in your emacs-ng


Languages

Language:JavaScript 90.9%Language:Clojure 9.1%