|
From: | Michael Hoffman |
Subject: | Re: Bind RET to command |
Date: | Thu, 21 Feb 2008 11:32:07 +0000 |
User-agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
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)))
[Prev in Thread] | Current Thread | [Next in Thread] |