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

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

Re: Bind RET to command


From: Ralf Angeli
Subject: Re: Bind RET to command
Date: Fri, 22 Feb 2008 18:55:23 +0100

* Tassilo Horn (2008-02-21) writes:

> Florian Lindner <address@hidden> writes:
>
>> How can I bind this to return but only in LaTeX mode (Auctex) and
>> python-mode.
>
> One way to do it is that:
>
> (add-hook 'LaTeX-mode-hook
>           (lambda ()
>             (local-set-key (kbd "RET") 'newline-and-indent)))

There is a much easier way.  Just do
M-x customize-variable <RET> TeX-newline-function <RET>

-- 
Ralf


reply via email to

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