unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Binding Keymap prefix to Major Mode
@ 2005-04-01 23:59 Tim Johnson
  2005-04-02  2:26 ` rgb
  2005-04-02 20:13 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Tim Johnson @ 2005-04-01 23:59 UTC (permalink / raw)


Hi:
I've been working on a major mode for the rebol programming language.
The following code has been evaluated:
(defvar rebol-keymap (make-sparse-keymap) "Rebol mode keymap")
(defcustom rebol-keymap-prefix [(control ?')]
   "*Keymap prefix string for rebol-keymap"
   :type 'string
   :group 'rebol)
(local-set-key rebol-keymap-prefix rebol-keymap)
(define-key rebol-keymap "b" 'previous-rebol-definition)
;; When I load a file that auto-loads the mode, I find
;; that "b" is bound to 'previous-rebol-definition, not
;; to "\C-' b" which is what I hope for.
NOTE: I've tried [(control \')] and [(control c)(control c)]
as prefix symbols with the same (lack of) results.
I presume that something else needs to be done to properly bind
this prefix to the keymap.

All help, docs and examples are welcome.

TIA
Tim

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

end of thread, other threads:[~2005-04-02 22:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-01 23:59 Binding Keymap prefix to Major Mode Tim Johnson
2005-04-02  2:26 ` rgb
2005-04-02  3:08   ` Tim Johnson
2005-04-02 20:13 ` Stefan Monnier
2005-04-02 21:57   ` Tim Johnson
2005-04-02 22:30     ` Daniel Wright
     [not found]     ` <mailman.79.1112481245.30898.help-gnu-emacs@gnu.org>
2005-04-02 22:58       ` Tim Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).