From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: How to change colour theme during export Date: Mon, 12 Oct 2009 17:06:09 -0400 Message-ID: <87iqekiapq.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxS5y-00069p-3N for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 17:06:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxS5t-00065E-L4 for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 17:06:17 -0400 Received: from [199.232.76.173] (port=56298 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxS5t-00065B-CQ for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 17:06:13 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:45379) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxS5s-0005io-Qg for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 17:06:13 -0400 Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id n9CL6B14015231 for ; Mon, 12 Oct 2009 22:06:11 +0100 (BST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs org-mode mailing list How do I set the color theme for fontification of exported source blocks? I thought maybe I could do it by adding the desired (color-theme-whatever) to my org-src-mode-hook. But it doesn't seem to have any effect (although the hook is called). So how should I do it and why didn't my method work? Thanks, Dan p.s. The bit in org-exp.el (from l. 2334) that (I believe) does the htmlize-ing looks like this --8<---------------cut here---------------start------------->8--- (with-temp-buffer (insert rtn) (if (functionp mode) (funcall mode) (fundamental-mode)) (font-lock-fontify-buffer) ;; I tried switching this line with the next, (org-src-mode) ;; but that wasn't it. (set-buffer-modified-p nil) (org-export-htmlize-region-for-paste (point-min) (point-max)))) --8<---------------cut here---------------end--------------->8---