all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs-Lisp Q: Minor mode keymap
@ 2007-04-27  1:18 Mark Elston
  2007-04-27  7:25 ` Sebastian Meisel
       [not found] ` <mailman.2580.1177659117.7795.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Mark Elston @ 2007-04-27  1:18 UTC (permalink / raw)
  To: help-gnu-emacs

I have read the relevant chapters (Keymaps and Modes) in the
Emacs Lisp Ref Manual a few times but I am still a little fuzzy
on how to do what I would like to do.  And that is, I have
a collection of Emacs Lisp functions that I have written to
support editing of a particular set of LaTeX files that I am
putting together.  Until now I have either been invoking them
through M-x or binding them with local-set-key whenever I visit
a buffer that I want to use them in.

What I would like to do is package these functions as a minor
mode with its own keymap and use \C-b in the LaTeX-mode-map
used in AucTeX.  Creating the minor mode map is pretty easy.
I assume that from there I do something like:

   (define-prefix-command my-mode-map)

or something similar.

But from there, I don't see what to do.  Do I have to modify my
.emacs to get the binding correct?  Can't I do it in the minor
mode file?

Thanks for any help.

Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-27 20:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-27  1:18 Emacs-Lisp Q: Minor mode keymap Mark Elston
2007-04-27  7:25 ` Sebastian Meisel
2007-04-27  7:48   ` Lennart Borgman (gmail)
     [not found] ` <mailman.2580.1177659117.7795.help-gnu-emacs@gnu.org>
2007-04-27 17:49   ` Mark Elston
2007-04-27 20:15     ` Mark Elston

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.