From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to change org-export-html-style Date: Wed, 16 Apr 2014 00:53:46 -0400 Message-ID: <87wqepvpr9.fsf@gmail.com> References: <28e944dca49c583c458b6ba60f29d078@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaHrM-0003W0-Di for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 00:54:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaHrG-0008Dy-50 for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 00:54:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:52420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaHrF-0008Dr-UO for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 00:54:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WaHrE-0005WR-DU for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 06:54:00 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Apr 2014 06:54:00 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Apr 2014 06:54:00 +0200 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: emacs-orgmode@gnu.org Rustom Mody writes: > 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)))) 1) I hope that the various escapes needed *are* in your definition and were stripped during the email trip; e.g. the inner quotes in the first string should be \" and \n instead of n. 2) org-export-html-style smells like an org 7.x variable to me. Are you using org 7.x? If not, you might need to change the name (although I don't know for sure and I haven't researched it.) > (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; } > Is `code' meaningful? Exporting a simple file with code I get things like this (with org 8.x):

My css is rusty, but shouldn't that be 

src { 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
>

-- 
Nick