all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: Howto change [enter] behaviour?
Date: 15 Feb 2003 06:24:18 +0100	[thread overview]
Message-ID: <87k7g286bh.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 87fzqr1dww.fsf@noos.fr

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

      parent reply	other threads:[~2003-02-15  5:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-14  8:09 Howto change [enter] behaviour? François Fleuret
2003-02-14 18:46 ` Kevin Rodgers
2003-02-15  5:24 ` Pascal Bourguignon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k7g286bh.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.