help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Adding to a submenu under the HTML menu


From: François . Gannaz
Subject: Re: Adding to a submenu under the HTML menu
Date: Tue, 24 Jan 2006 20:35:01 +0100
User-agent: Mutt/1.5.11

Le dim 22 jan 23:36, ken a écrit :
> 
> I want to add some German characters to the "Insert Character Entities"
> submenu under the "HTML" menu.  Yes, there's a lot of docs on
> customizing menus, but I can't figure out the current code so don't know
> which docs are applicable.  Would anyone know how to add a few nice
> characters to that submenu?

I guess you're using html-helper-mode.

Quoting from html-helper-mode.el :
html-helper-add-tag (l)
  "Add a new tag to html-helper-mode.
  Builds a tempo-template for the tag and puts it into the
  appropriate keymap if a key is requested. Format:
  `(html-helper-add-tag '(type keybinding completion-tag menu-name
  template doc)'
  [...]

So you could try in a *scratch buffer* :
  (html-helper-add-tag
    '(entity "\C-c%"   "ç" "C cédille" ("ç")))
  (html-helper-rebuild-menu)
After evaluating, it should appear automatically in the HTML menu.

If its's OK, put it in your .emacs, for example in a
html-helper-load-hook. For more details and examples, have a look at
html-helper-mode.el.

--
François Gannaz




reply via email to

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