From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.help Subject: Re: auctex indentation Date: Sat, 23 Jul 2005 18:16:01 +0200 Organization: nil Message-ID: <42e26d41$0$18637$14726298@news.sunsite.dk> References: <87u0ilbsfr.fsf@madamex.madamex.dk> Reply-To: angeli@iwi.uni-sb.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122135492 11913 80.91.229.2 (23 Jul 2005 16:18:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2005 16:18:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 23 18:18:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DwMhO-0008G8-03 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2005 18:18:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DwMjZ-0000Ad-Oz for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2005 12:20:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:tkFPC5SaOfKIbEj/KsgfNJ3kMXI= Original-Lines: 47 Original-NNTP-Posting-Host: 134.96.72.190 Original-X-Trace: news.sunsite.dk DXC=HnKY6R2<6MN3j@n`X75YjCYSB=nbEKnkKcfMJI:?ic2Kce3h@0W\omLKaa1aeliV3DI`Y6bHV List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28107 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28107 * Mads Jensen (2005-07-23) writes: > I am trying to configure the auctex indenting, but that's easier > said than done. Currently I have this in my .emacs: > > (setq LaTeX-item-indent 0 > LaTeX-indentation 4) There is no variable `LaTeX-indentation' in AUCTeX. > But it's only LaTeX-item-indent, that works like I want, ie. indents the > items in an environment two spaces more than the \begin{..} and \end{..} > delimeters. How can I do the same with the commands, that are inside > \begin{document} and \end{document} ? Especially in multi-file LaTeX documents this doesn't make sense. (Unless you want whitespace in front of everything which may end up between \begin{document}..\end{document}, even if it is in a different file. But that's not supported by AUCTeX.) Apart from that I'd dislike such an indentation in general. I want normal text to start at the beginning of a line, not after some whitespace. And I don't need an indication that I am in a `document' environment because this is mostly obvious anyway. > I tried reading the manual, which > is how I found out about LaTeX-item-indent. I am sure it's just a matter > of choosing the right value for LaTeX-indentation !? In the customization group `LaTeX-indentation' (`M-x customize-group RET LaTeX-indentation RET') you will find ,---- | LaTeX-document-regexp: [Hide Value] document | [State]: STANDARD. | | Regexp matching environments in which the indentation starts at col 0. `---- You could set this to some value which is unlikely to be encountered in a LaTeX document. (If you set it to an empty string it will match "\begin{}" which you probably don't want.) But I don't think all this is a good idea, really. -- Ralf