Fork me on GitHub
#emacs
<
2022-04-21
>
Drew Verlee02:04:03

Is the js to cljs translation feature i just saw in calva available via emacs? If so, how? If not, 😢.

vemv06:04:27

@U0ETXRFEW: what is it based on?

pez06:04:58

I've ripped src/js_cljs/core.cljs out of @U3Y18N0UC’s js2cljs: https://gitlab.com/mauricioszabo/js2cljs Will pick it from Clojars once it's available there.

👀 2
👍 1
vemv06:04:05

Thanks! :hugging_face: (I have no idea how to build an emacs helper out of cljs files)

pez06:04:30

@U45T93RA6 in the #calva thread about this I posted about an experiment where I used some clj-suitable to enumerate the js/ entries. No idea if that is the right way to go for js2cljs, but anyway, FYI. https://clojurians.slack.com/archives/CBE668G4R/p1650465566657349

👍 1
pez06:04:45

Maybe we need an cljs2elisp converter too? 😃

clojure-spin 1
pez06:04:36

Nah, but maybe we can set up a server running this, and non-js editors can query that one? Or something...

vemv06:04:59

While I'd wager that this feature would be a bit convoluted to ship in CIDER, emacs does have a generic "take this region and run it through a command" functionality (namely shell-command-on-region) Assuming one has https://gitlab.com/mauricioszabo/js2cljs checked out in his computer, the shell command could invoke said program.

pez06:04:37

Yeah, it is unclear how well it fits in Calva, even. But since it has cljs glue set up, I choose to do it that way.

plexus08:04:09

Corkey, Corgi's key binding system, now has a dedicated repo and a full README https://github.com/corgi-emacs/corkey

❤️ 4
plexus08:04:18

Note that things are a little in flux now that we're reorganizing packages and moving to a dedicated github-org, I'll try to make sure at least the sample config works out of the box again in the coming days.

Carlo12:04:02

I love the idea of signals!

❤️ 1
Cora (she/her)18:04:39

the stability of doom is great

Cora (she/her)18:04:00

it does patch things, though, sometimes

Cora (she/her)18:04:48

advice appears 69 times in the codebase https://github.com/hlissner/doom-emacs/search?q=advice (not all of them are actually adding advice)

ag19:04:58

> the stability of doom is great ehmm, using 'stability' and anything Emacs-related in the same sentence not always justifiable, but in this case, I rather agree; overall, Doom feels a lot safer than Spacemacs. At least, when something breaks, I no longer have to scratch my head - it's relatively easy to figure out. With Spacemacs, it was almost always a puzzle.

💯 2