help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Howto change [enter] behaviour?


From: Pascal Bourguignon
Subject: Re: Howto change [enter] behaviour?
Date: 15 Feb 2003 06:24:18 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]