[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Making `M-RET' more useful
From: |
Reiner Steib |
Subject: |
[AUCTeX-devel] Making `M-RET' more useful |
Date: |
Tue, 03 Oct 2006 13:22:13 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Hi,
in message-mode, M-RET runs `message-newline-and-reformat':
,----[ `C-h k M-RET' ]
| M-RET runs the command message-newline-and-reformat
| which is an interactive compiled Lisp function in `message'.
| It is bound to M-RET, <menu-bar> <Message> <Newline and Reformat>.
| (message-newline-and-reformat &optional arg not-break)
|
| Insert four newlines, and then reformat if inside quoted text.
| Prefix arg means justify as well.
`----
In LaTeX mode, I often also hit `M-RET', but I get an "\item"
(`LaTeX-insert-item'), which is completely useless outside an
itemize-like environment. Or am I missing something?
Before I try to implement a `message-newline-and-reformat'-like
command for AUCTeX I'd like to hear other opinions.
How about making `M-RET' do newline-and-reformat (no "\item") if
`LaTeX-current-environment' returns "document" (or "letter", what
else?), cf. `LaTeX-insert-item'. If yes, should it be done by adding
an appropriate entries for "document" and "letter" to
`LaTeX-item-list'? Other suggestions?
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
- [AUCTeX-devel] Making `M-RET' more useful,
Reiner Steib <=