Fork me on GitHub
#juxt
<
2020-06-03
>
borkdude15:06:11

any asciidoc modes for emacs that are maintained?

dominicm15:06:38

I think most juxters used the adoc mode, then stopped because it made text different sizes.

4
borkdude15:06:20

then stopped, means, they don't use any modes, just text mode?

Johanna15:06:40

I don't use any modes for asciidoc, I tried it and didn't find it readable.

borkdude15:06:36

I find the support in VSCode quite good, but it's not emacs

alexdavis16:06:33

I (and probably most other juxters) use the asciidoctor.js browser extension and have the file I'm editing open in the browser and use that as a preview, the only emacs config is to center the text and stop overflowing lines getting cut in horrible ways. Only issue is you have to save to see the preview

Lu16:06:11

Yup I do the same

borkdude19:06:37

What's the benefit of the browser extension over watching and compiling the file?

alexdavis19:06:03

Just that it’s all done for you, getting a working setup is just open the file in emacs and space f o to render it, no need to setup a watcher or deal with jruby shenanigans

borkdude19:06:25

Made myself a babashka watch + refresh browser script. https://github.com/babashka/book/blob/master/script/watch.clj Demo:

alexdavis22:06:39

Very cool, I’ve found myself using babashka (and kondo) a fair amount recently and I’m very happy with them

alexdavis22:06:43

Actually could probably make a decent static site tool with babashka + asciidoc, hmm idea...

borkdude22:06:24

For static sites there's also bootleg which can be used as a pod (cmd line tool as clojure library) in babashka: https://github.com/retrogradeorbit/bootleg A demo: https://github.com/borkdude/michielborkent.nl/blob/master/script/generate.clj

borkdude22:06:27

it doesn't support asciidoc though. is there a Java / clojure library for asciidoc? maybe it could add it.

alexdavis22:06:39

We use this, it works but it’s not the most performant and you get some funky errors https://github.com/asciidoctor/asciidoctorj