Emacs htmlize in batch mode?

后端 未结 5 508
栀梦
栀梦 2021-02-06 08:50

I like to use htmlize-file in emacs to turn clojure source files into html.

I want to use it from the linux command line instead, or programmatically from clojure itself

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-06 09:34

    Does using the first one with -nw work? that should prevent an X window being opened, but there should still be enough of the 'GUI' part of emacs present to be able to initialise the faces system. It's still not as elegant as -batch (it'll fail if run from a non-terminal process, eg crontab) but it'll be less irritating.

提交回复
热议问题