all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Hoffman <b3i4old02@sneakemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Bind RET to command
Date: Thu, 21 Feb 2008 11:32:07 +0000	[thread overview]
Message-ID: <fpjnfo$va1$1@ger.gmane.org> (raw)
In-Reply-To: <nemoThu022108111759@news.lrz-muenchen.de>

Florian Lindner wrote:
> Hello,
> I want to indent the current line when changing the line with return.
> 
> The command AFAIK is reindent-then-newline-and-indent.
> 
> How can I bind this to return but only in LaTeX mode (Auctex) and
> python-mode.

For python-mode, try:

(add-hook 'python-mode-hook
           '(lambda ()
              (define-key python-mode-map "\C-m" 
'reindent-then-newline-and-indent)))





  parent reply	other threads:[~2008-02-21 11:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21 10:21 Bind RET to command Florian Lindner
2008-02-21 11:31 ` Tassilo Horn
2008-02-21 11:32 ` Michael Hoffman [this message]
     [not found] ` <mailman.7735.1203593497.18990.help-gnu-emacs@gnu.org>
2008-02-22 17:55   ` Ralf Angeli
2008-02-22 23:54     ` use-file-dialog admin
2008-02-23  1:06       ` use-file-dialog Bastien
2008-02-23  0:11         ` use-file-dialog Lennart Borgman (gmail)
2008-02-23  1:44           ` use-file-dialog Bastien Guerry
2008-02-23  0:59             ` use-file-dialog Lennart Borgman (gmail)
2008-02-23 16:43       ` use-file-dialog Reiner Steib
2008-02-24 15:24       ` use-file-dialog Kevin Rodgers

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='fpjnfo$va1$1@ger.gmane.org' \
    --to=b3i4old02@sneakemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.