emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] What's wrong with org-export-html-final-hook in 8.x


From: visayafan
Subject: [O] What's wrong with org-export-html-final-hook in 8.x
Date: Tue, 14 May 2013 22:16:14 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]