On Tuesday, June 12, David Cramer wrote:
> Is there an easy way to make emacs give me a
> series of sub-menus, like it does when I select "Markup->Insert Element"
> at a point where many elements are allowed (e.g. "abbrev-email"
> "emphasis-guimenuit" etc.)?
Hi David,
I use mouse bindings that generate context-aware popup menus - valid
elements/attributes at cursor point - with a right-click.
This may not be the most elegant method, but here's what I use:
;; Right-click Popup Menus
(add-hook
'sgml-mode-hook
(function
(lambda()
(define-key sgml-mode-map [mouse-3] 'sgml-tags-menu)
)))
;;
Hope that helps,
Mark
_____________________________________
Mark Johnson
Duke Physics <[EMAIL PROTECTED]>
Debian SGML <[EMAIL PROTECTED]>
Home Page: <http://dulug.duke.edu/~mark/>
GPG fp: 50DF A22D 5119 3485 E9E4 89B2 BCBC B2C8 2BE2 FE81