From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Binding Keymap prefix to Major Mode Date: Sat, 02 Apr 2005 15:13:07 -0500 Organization: Bell Sympatico Message-ID: <87br8x547i.fsf-monnier+gnu.emacs.help@gnu.org> References: <114ro1mfgnlds46@news.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112473450 23364 80.91.229.2 (2 Apr 2005 20:24:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2005 20:24:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 22:24:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DHp9q-0006Wb-2e for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Apr 2005 22:23:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHpBN-0005HI-9Y for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Apr 2005 15:25:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news-in.mts.net!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:GqSSGrwrgraTIKwvav+zPnJWu2Q= Original-Lines: 13 Original-NNTP-Posting-Host: 67.71.119.91 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1112472787 67.71.119.91 (Sat, 02 Apr 2005 15:13:07 EST) Original-NNTP-Posting-Date: Sat, 02 Apr 2005 15:13:07 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:129794 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25352 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25352 > (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) Seeing the code above, I *strongly* suggest you google for "sample-mode.el" and try to start from that instead. Stefan