From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Coloured source code examples in --batch exports? Date: Thu, 13 Jun 2019 16:16:16 -0400 Message-ID: <87r27xqm0f.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:32813) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbW96-0005c0-BS for emacs-orgmode@gnu.org; Thu, 13 Jun 2019 16:16:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbW95-0002dp-6G for emacs-orgmode@gnu.org; Thu, 13 Jun 2019 16:16:28 -0400 Received: from [195.159.176.226] (port=51144 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbW93-0002cn-9Z for emacs-orgmode@gnu.org; Thu, 13 Jun 2019 16:16:27 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hbW8z-000tC0-V2 for emacs-orgmode@gnu.org; Thu, 13 Jun 2019 22:16:21 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Stig Brautaset 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