[Top][All Lists]

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

Re: Bind RET to command

From: Michael Hoffman
Subject: Re: Bind RET to command
Date: Thu, 21 Feb 2008 11:32:07 +0000
User-agent: Thunderbird (Windows/20071031)

Florian Lindner wrote:
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

For python-mode, try:

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

reply via email to

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