[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding to a submenu under the HTML menu
From: |
ken |
Subject: |
Re: Adding to a submenu under the HTML menu |
Date: |
Sun, 29 Jan 2006 20:59:58 -0500 |
On Sun, 29 Jan 2006 00:57:59 +0100 François Gannaz
<mytskine@laposte.net> wrote:
> Le sam 28 jan 06:03, ken a écrit :
> > >
> > > ....
>
> In fact the problem is that you used the wrong hook. I you read above
> carefully, you'll find that I suggested to use html-helper-load-hook.
> Yet you used html-helper-mode-hook.
Obviously a cut-n-paste malfunction. :)
> A load-hook is evaluated once
> (when the file is loaded) whereas a mode-hook might be evaluated
> several times (in fact, each time you enter the mode).
>
> So you should write something like:
> (defun my-html-load-hook ()
> (mapcar ; just to avoid repeating hh-add-tag
> 'html-helper-add-tag
> '(
> (entity "\C-c%" "ç" "C cédille" ("ç"))
> (entity "\C-cD" "‡" "double dagger (‡)" ("‡"))
> ;; and so on
> ))
> (html-helper-rebuild-menu))
> (add-hook 'html-helper-load-hook 'my-html-load-hook)
>
> Hope it helps.
Works perfectly. I would have never figured all this
out. Merci vielmals.
> --
> François Gannaz
>
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
--
"This world ain't big enough for the both of us,"
said the big noema to the little noema.