From: visayafan <visayafan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: What's wrong with org-export-html-final-hook in 8.x
Date: Tue, 14 May 2013 22:16:14 +0800 [thread overview]
Message-ID: <87ip2lode9.fsf@gmail.com> (raw)
Recently I upgrade my Org Mode from 7.8.11 to the latest 8.0.2 and find
org-export-html-final-hook doesn't work.
------------------------------
(add-hook 'org-export-html-final-hook 'org-delete-!!!)
(defun org-delete-!!! ()
(interactive)
(goto-char (point-min))
(while (re-search-forward "AAAAA" nil t)
(replace-match "<"))
(goto-char (point-min))
(while (re-search-forward "BBBBB" nil t)
(replace-match ">")))
------------------------------
I need this piece of code because when I export my org note to html I
want something like AAAAAfont color="red"BBBBBthis is
redAAAAA/fontBBBBB change to <font color="red">this is red</font> then
I will have red color. but now it doen't work.
I find this org-hook link
http://orgmode.org/worg/org-configs/org-hooks.html, but this page
doesn't seem to help, it says nothing about the upgrade thing.
So, can anybody help about this? Any help would be very appreciated.
Sorry for my broken English :)
visayafan
--
next reply other threads:[~2013-05-14 14:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 14:16 visayafan [this message]
2013-05-14 15:31 ` What's wrong with org-export-html-final-hook in 8.x Rasmus
2013-05-14 17:12 ` visayafan
2013-05-14 18:10 ` visayafan
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=87ip2lode9.fsf@gmail.com \
--to=visayafan@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.