From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rustom Mody Subject: Re: How to change org-export-html-style Date: Wed, 16 Apr 2014 08:55:24 +0530 Message-ID: References: <28e944dca49c583c458b6ba60f29d078@mail.rickster.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2cd18c9edae04f7207838 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaGTq-000757-9B for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 23:25:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaGTp-0007hV-8s for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 23:25:46 -0400 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:43889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaGTp-0007hP-2h for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 23:25:45 -0400 Received: by mail-ob0-f175.google.com with SMTP id vb8so5316761obc.6 for ; Tue, 15 Apr 2014 20:25:44 -0700 (PDT) In-Reply-To: <28e944dca49c583c458b6ba60f29d078@mail.rickster.com> 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: Rick Frankel , emacs-orgmode --001a11c2cd18c9edae04f7207838 Content-Type: text/plain; charset=UTF-8 On Tue, Apr 15, 2014 at 10:39 PM, Rick Frankel wrote: > On 2014-04-15 07:30, Rustom Mody wrote: > >> I need (for various reasons) to inline these styles >> >> I have this code in my init to change the html style >> >> --------------------------------- >> (defun rusi/load-css() >> "Returns string from css file (hardwired) suitable for inline css" >> (interactive) >> (setq org-export-html-style >> (with-temp-buffer >> (insert "nn") >> (buffer-string)))) >> (rusi/load-css) >> -------------------------------- >> Now if I edit and save the my-org.css file and then call M-: >> (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 use. >> org-reload is not helping here >> > > Can you explain "not working"? There's not enough info here to see > what problem you are having. > > rick > Lets say my-org.css has this one line: code { color: green; } ie put inline code blocks in green when exporting to html I change it to code { color: blue; } 1 save the file 2. Run rusi/load-css 3. Check that org-export-html-file's value has changed from green to blue However exports from org to html continue to export code-blocks as green Restart emacs and export (some org file that has code blocks) Now they are blue --001a11c2cd18c9edae04f7207838 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

--001a11c2cd18c9edae04f7207838--