From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Howto change [enter] behaviour? Date: 15 Feb 2003 06:24:18 +0100 Organization: informatimago.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87k7g286bh.fsf@thalassa.informatimago.com> References: <87fzqr1dww.fsf@noos.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045286661 6775 80.91.224.249 (15 Feb 2003 05:24:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2003 05:24:21 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18juoG-0001l9-00 for ; Sat, 15 Feb 2003 06:24:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18juq4-0005X9-07 for gnu-help-gnu-emacs@m.gmane.org; Sat, 15 Feb 2003 00:26:12 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!thalassa.informatimago.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: thalassa.informatimago.com (212.87.205.57) Original-X-Trace: fu-berlin.de 1045286658 47527319 212.87.205.57 (16 [41911]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:110225 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6727 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6727 francois.fleuret@noos.fr (François Fleuret) writes: > Hi, > > I am writing a major mode to play mp3s (I know something like this > already exists, but mine is simpler and it was more an exercice in > elisp than a real project ... anyway). My only problem so far is how > to change the behaviour of the [enter] key. How am I supposed to do > that ? > > Thanks in advance, Why do you ask if you already know that? > (define-key mp3play-mode-map "n" 'next-line) > (define-key mp3play-mode-map "p" 'previous-line) > (define-key mp3play-mode-map "q" 'mp3play-quit) > (define-key mp3play-mode-map "k" 'mp3play-kill) > (define-key mp3play-mode-map " " 'mp3play-play) > (define-key mp3play-mode-map "r" 'mp3play-refresh-list) > (define-key mp3play-mode-map "s" 'mp3play-stop) > (define-key mp3play-mode-map "h" 'mp3play-help) > (define-key mp3play-mode-map "?" 'mp3play-show-properties) > (define-key mp3play-mode-map "\C-m" 'next-line) -- __Pascal_Bourguignon__ http://www.informatimago.com/ ---------------------------------------------------------------------- There is a fault in reality. Do not adjust your minds. -- Salman Rushdie