[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Coloured source code examples in --batch exports?
From: |
Nick Dokos |
Subject: |
Re: [O] Coloured source code examples in --batch exports? |
Date: |
Thu, 13 Jun 2019 16:16:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Stig Brautaset <address@hidden> writes:
> ...
> Adding a ~--batch~ flag to the command makes the command run on
> CircleCI, but I get a less colourful (and less pleasing) result. The
> markup appears to only use /italic/ and *bold* styles now.
>
--batch skips your initialization file. You will have to provide a minimal
load file that does the initializations you need and then use -l to load it:
--8<---------------cut here---------------start------------->8---
emacs --batch -l my-init-file.el --file foo.org \
--eval '(progn (package-initialize) (org-html-export-to-html nil nil nil
t) (kill-emacs))'
--8<---------------cut here---------------end--------------->8---
--
Nick
"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler