emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to change colour theme during export
@ 2009-10-12 21:06 Dan Davison
  2009-10-12 22:07 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Davison @ 2009-10-12 21:06 UTC (permalink / raw)
  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---

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-12 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12 21:06 How to change colour theme during export Dan Davison
2009-10-12 22:07 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).