From: Rustom Mody <rustompmody@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: How to change org-export-html-style
Date: Tue, 15 Apr 2014 17:00:48 +0530 [thread overview]
Message-ID: <CAJ+TeoeW9B5kU4h0QKw6NHJgeYx+9gFK1qf7-AvzVpzp-xZzAw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
My html styles are in a file my-org.css in ~/orghacks
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 "\n<style type=\"text/css\">\n")
(insert-file-contents (expand-file-name "my-org.css" "~/orghacks"))
(goto-char (point-max))
(insert "\n</style>\n")
(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
[-- Attachment #2: Type: text/html, Size: 1206 bytes --]
next reply other threads:[~2014-04-15 11:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 11:30 Rustom Mody [this message]
[not found] ` <28e944dca49c583c458b6ba60f29d078@mail.rickster.com>
2014-04-16 3:25 ` How to change org-export-html-style Rustom Mody
2014-04-16 4:53 ` Nick Dokos
2014-04-16 8:35 ` Rustom Mody
2014-04-16 14:59 ` Rick Frankel
-- strict thread matches above, loose matches on Subject: below --
2014-04-15 11:35 Rustom Mody
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ+TeoeW9B5kU4h0QKw6NHJgeYx+9gFK1qf7-AvzVpzp-xZzAw@mail.gmail.com \
--to=rustompmody@gmail.com \
--cc=emacs-orgmode@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.