all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ralf Angeli <dev.null@caeruleus.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Bind RET to command
Date: Fri, 22 Feb 2008 18:55:23 +0100	[thread overview]
Message-ID: <47bf0c8b$0$2301$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: mailman.7735.1203593497.18990.help-gnu-emacs@gnu.org

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

> Florian Lindner <Florian.Lindner@xgm.de> 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


  parent reply	other threads:[~2008-02-22 17:55 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
     [not found] ` <mailman.7735.1203593497.18990.help-gnu-emacs@gnu.org>
2008-02-22 17:55   ` Ralf Angeli [this message]
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='47bf0c8b$0$2301$9b4e6d93@newsspool4.arcor-online.net' \
    --to=dev.null@caeruleus.net \
    --cc=angeli@caeruleus.net \
    --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.