[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fill-paragraph
From: |
Andreas Politz |
Subject: |
Re: fill-paragraph |
Date: |
Wed, 28 Oct 2009 17:10:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Leo <sdl.web@gmail.com> writes:
> Hi all,
>
> I use AUCTeX for editing LaTeX files. I use tikz/pgf for drawing
> graphics in TeX. In tikz, each drawing command ends with a `;', for
> example:
>
> \begin{tikzpicture}
> \draw (0,0) -- (1,1);
> \draw (1,1) -- (2,2);
> \end{tikzpicture}
>
> How can I configure Emacs (possibly by changing paragraph-separate or
> paragraph-start) so that M-q (M-x fill-paragraph) does not join those
> tikz drawing command.
>
> At the moment if I M-q in the above code it will change to:
>
Then don't do it.
> \begin{tikzpicture}
> \draw (0,0) -- (1,1); \draw (1,1) -- (2,2);
> \end{tikzpicture}
>
> Thank you.
>
> Leo
Seriously, if you add "tikzpicture" to LaTeX-indent-environment-list
(add-to-list 'LaTeX-indent-environment-list '("tikzpicture"))
it'll leave the code unfilled.
-ap