unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: When/where does setq work?
Date: Wed, 2 Apr 2014 15:04:14 -0700 (PDT)	[thread overview]
Message-ID: <e8b3b842-c7a1-4952-bf35-e982d852b87f@googlegroups.com> (raw)
In-Reply-To: <mailman.18759.1396461983.10748.help-gnu-emacs@gnu.org>

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


  parent reply	other threads:[~2014-04-02 22:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02  7:00 When/where does setq work? Rusi
2014-04-02 12:57 ` lee
2014-04-02 18:06   ` Florian v. Savigny
     [not found]   ` <mailman.18759.1396461983.10748.help-gnu-emacs@gnu.org>
2014-04-02 22:04     ` Rusi [this message]
2014-04-02 23:02       ` Florian v. Savigny
     [not found]       ` <mailman.18784.1396479749.10748.help-gnu-emacs@gnu.org>
2014-04-03  4:04         ` Rusi
2014-04-03 14:49           ` Florian v. Savigny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8b3b842-c7a1-4952-bf35-e982d852b87f@googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).