From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: How to change colour theme during export Date: Tue, 13 Oct 2009 00:07:51 +0200 Message-ID: <25DDBC1D-F6B4-4006-B991-30B2F168E288@gmail.com> References: <87iqekiapq.fsf@stats.ox.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxT3f-0004RY-M0 for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 18:07:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxT3b-0004Nv-TO for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 18:07:59 -0400 Received: from [199.232.76.173] (port=44789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxT3b-0004No-Qp for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 18:07:55 -0400 Received: from mail-ew0-f207.google.com ([209.85.219.207]:62086) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxT3b-0005xX-DV for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 18:07:55 -0400 Received: by ewy3 with SMTP id 3so3654308ewy.31 for ; Mon, 12 Oct 2009 15:07:54 -0700 (PDT) In-Reply-To: <87iqekiapq.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs org-mode mailing list Hi Dan, files which you publish interactively should get the colors you currently have active in Emacs. Stuff published in Org and Worg uses color definitions in org.css and worg.css, respectively. If you wanted to change these, you would have to make a different style file. Check the command `org-export-htmlize-generate-css', that might help. During export on orgmode.org, also the following setting is activated (setq org-export-htmlize-output-type 'css) making sure that the colors will be taken from the css file. Also, check out this FAQ: http://orgmode.org/worg/org-faq.php#preserving-faces-during-batch-export HTH - Carsten On Oct 12, 2009, at 11:06 PM, Dan Davison wrote: > 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--- > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten