From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: How to change org-export-html-style Date: Wed, 16 Apr 2014 10:59:11 -0400 Message-ID: References: <28e944dca49c583c458b6ba60f29d078@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaRIy-000571-Bp for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 10:59:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaRIt-000223-8T for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 10:59:16 -0400 Received: from mail.rickster.com ([204.62.15.78]:56440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaRIt-00021z-52 for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 10:59:11 -0400 In-Reply-To: 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: Rustom Mody Cc: emacs-orgmode On 2014-04-15 23:25, Rustom Mody wrote: > On Tue, Apr 15, 2014 at 10:39 PM, Rick Frankel =20 > wrote: >=20 > On 2014-04-15 07:30, Rustom Mody wrote: >=20 > I need (for various reasons) to inline these styles >=20 > I have this code in my init to change the html style >=20 > (defun rusi/load-css() > =C2=A0 "Returns string from css file (hardwired) suitable for inline cs= s" > =C2=A0 (interactive) > =C2=A0 (setq org-export-html-style > =C2=A0=C2=A0=C2=A0 (with-temp-buffer > =C2=A0=C2=A0=C2=A0 =C2=A0 (insert "nn") > =C2=A0=C2=A0=C2=A0 =C2=A0 (buffer-string)))) > (rusi/load-css) > Now if I edit and save the my-org.css file and then call M-:=20 > (rusi/load-css) > it does not work. > Restarting emacs makes it work. > Ive checked that org-export-html-style is actually changed. > However org-mode seems to be keeping some internal copy after first=20 > use. > org-reload is not helping here >=20 > Can you explain "not working"? There's not enough info here to see > what problem you are having. >=20 On further examination, I'm not sure how it works at all! `org-export-html-style' is a customization variable from the (old) version of org included w/ emacs: #+BEGIN_SRC emacs-lisp (describe-variable 'org-export-html-style) #+END_SRC #+RESULTS: #+begin_example org-export-html-style is a variable defined in `org-html.el'. #+end_example The source file for the current exporter is `ox-html.el'. Try setting `org-html-head' and `org-html-head-include-default-style'. rick