all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auctex indentation
@ 2005-07-23 12:47 Mads Jensen
  2005-07-23 16:16 ` Ralf Angeli
  2005-07-24  5:16 ` Tim X
  0 siblings, 2 replies; 3+ messages in thread
From: Mads Jensen @ 2005-07-23 12:47 UTC (permalink / raw


Hi NG,

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)

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} ? 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 !?

Kind regards,
-- 
Mads Jensen - mail sent to address ends in /dev/null
              s/spam/madsj for emailing me 
              gpg: 7E775BDA

It is impossible to make anything foolproof because fools are so
ingenious.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: auctex indentation
  2005-07-23 12:47 auctex indentation Mads Jensen
@ 2005-07-23 16:16 ` Ralf Angeli
  2005-07-24  5:16 ` Tim X
  1 sibling, 0 replies; 3+ messages in thread
From: Ralf Angeli @ 2005-07-23 16:16 UTC (permalink / raw


* 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: auctex indentation
  2005-07-23 12:47 auctex indentation Mads Jensen
  2005-07-23 16:16 ` Ralf Angeli
@ 2005-07-24  5:16 ` Tim X
  1 sibling, 0 replies; 3+ messages in thread
From: Tim X @ 2005-07-24  5:16 UTC (permalink / raw


Mads Jensen <spam@raptus.dk> writes:

> Hi NG,
> 
> 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)
> 
> 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} ? 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 !?
> 
> Kind regards,
> -- 
> Mads Jensen - mail sent to address ends in /dev/null
>               s/spam/madsj for emailing me 
>               gpg: 7E775BDA
> 
> It is impossible to make anything foolproof because fools are so
> ingenious.

Thats a pretty odd/unusual indentation style you want. Most people
wouldn't like it as it just wastes useful screen area without any real
benefit since you nly have a single begin/end document anyway. 

However, I'm sure it can be done (though I don't know about the
situation with multiple include files etc). I would just try tweaking
some of the variables under the customize group for auctex and see how
you go. If you cannot get any joy, I'd suggest contacting the auctex
developers. 

Tim

-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-24  5:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-23 12:47 auctex indentation Mads Jensen
2005-07-23 16:16 ` Ralf Angeli
2005-07-24  5:16 ` Tim X

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.