This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Causing emacs to create submenus...
- To: David Cramer <david_cramer at broadjump dot com>
- Subject: Re: DOCBOOK-APPS: Causing emacs to create submenus...
- From: Mark Johnson <mark at phy dot duke dot edu>
- Date: Sat, 16 Jun 2001 14:29:24 -0400
- Cc: docbook-apps at lists dot oasis-open dot org
- References: <AA7C274B76E19E4A89883C73B97E08760DF953@mailbag.inhouse.broadjump.com>
- Reply-to: mark at phy dot duke dot edu
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 <mark@duke.edu>
Debian SGML <mrj@debian.org>
Home Page: <http://dulug.duke.edu/~mark/>
GPG fp: 50DF A22D 5119 3485 E9E4 89B2 BCBC B2C8 2BE2 FE81