[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When/where does setq work?
From: |
Rusi |
Subject: |
Re: When/where does setq work? |
Date: |
Wed, 2 Apr 2014 15:04:14 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Wednesday, April 2, 2014 11:36:14 PM UTC+5:30, Florian v. Savigny wrote:
> > > 1. edit my-org.css
> > > 2. save
> > > 3. M-x load-my-css
> > > has no effect
> One might add to Eli's questions (even if that is simply what he
> means, only in more words): What exactly do you mean by "no effect"?
> One would assume that you mean that C-h v org-export-html-style tells
> you that the variable still has the old value. But one should never
> assume; maybe you do something more high-level and that is how you
> notice that the old value is still used.
> Assuming ;-) that you ARE sure that the value of the variable does not
> change: Have you tried M-x edebug-defun inside the definition of
> load-my-css, and then calling it? It might go some of the way towards
> anwering Eli's second question.
org-export-html-style is an org-mode variable defined in org-html.el.
Its 'effect' is the css styles that are used by org's html export
eg
code {
color: #00f;
}
makes the color of code in <code> </code> blocks blue
Now I edit my-org.css
code {
color: #7f7f7f
}
(ie the new color is now grey)
And I export the (some) org file I am working on.
It still shows as blue.
This is what I mean by "no effect"
I exit and restart emacs
Open my org file again
Export to html
Now its grey