From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: controlling how htmlize fontifies code Date: Sun, 02 Aug 2015 14:17:29 +0200 Message-ID: <87wpxdsx46.fsf@gmx.us> References: <874mkihwl2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLsD8-0000up-Nl for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 08:17:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLsD3-0007YR-FK for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 08:17:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:41911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLsD3-0007Y1-8s for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 08:17:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZLsCy-0001xE-O0 for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 14:17:40 +0200 Received: from 46.166.188.235 ([46.166.188.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Aug 2015 14:17:40 +0200 Received: from rasmus by 46.166.188.235 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Aug 2015 14:17:40 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga writes: > Now, I can simply start up emacs with a light background, export my > slides and everything is fine. However, it would be nice to not have to > start up a new emacs just for this. Is there an easy way to pretend, > for export to HTML, that emacs is using a light background? Maybe a way > to advise the exporter? Check the functions disable-theme and load-theme in Emacs; maybe map custom-enabled-themes over disable-theme. Check the hooks org-export-before-processing-hook and org-export-before-parsing-hook in ox to automate it. Some people on SX seem to have used some JS coloring libraries. > PS - ideally, code export to HTML would make use of CSS instead of > hard-coding in the colours but that's a discussion for another > day... This would also solve the problem when exporting in batch. Patches welcome. Rasmus -- I feel emotional landscapes they puzzle me