* fill-paragraph
@ 2009-10-28 14:01 Leo
2009-10-28 16:10 ` fill-paragraph Andreas Politz
0 siblings, 1 reply; 5+ messages in thread
From: Leo @ 2009-10-28 14:01 UTC (permalink / raw)
To: help-gnu-emacs
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:
\begin{tikzpicture}
\draw (0,0) -- (1,1); \draw (1,1) -- (2,2);
\end{tikzpicture}
Thank you.
Leo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: fill-paragraph
2009-10-28 14:01 fill-paragraph Leo
@ 2009-10-28 16:10 ` Andreas Politz
2009-10-28 23:08 ` fill-paragraph Leo
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Politz @ 2009-10-28 16:10 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* fill-paragraph
@ 2007-07-12 3:55 Scott Otterson
2007-07-12 19:28 ` fill-paragraph Carsten Dominik
0 siblings, 1 reply; 5+ messages in thread
From: Scott Otterson @ 2007-07-12 3:55 UTC (permalink / raw)
To: emacs-orgmode
A small bug in v5.02: If I put the cursor on a headline that is longer
than 100 columns, and if I type
M-x fill-paragraph
then nothing happens. It used to be that fill-paragraph would wrap
too-long headlines, but this hasn't worked for maybe the last three
org-mode versions. I'm using emacs 22.1
Scott
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: fill-paragraph
2007-07-12 3:55 fill-paragraph Scott Otterson
@ 2007-07-12 19:28 ` Carsten Dominik
0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2007-07-12 19:28 UTC (permalink / raw)
To: Scott Otterson; +Cc: emacs-orgmode
On Jul 12, 2007, at 5:55, Scott Otterson wrote:
> A small bug in v5.02: If I put the cursor on a headline that is longer
> than 100 columns, and if I type
>
> M-x fill-paragraph
>
> then nothing happens. It used to be that fill-paragraph would wrap
> too-long headlines, but this hasn't worked for maybe the last three
> org-mode versions. I'm using emacs 22.1
Headlines are explicitly excluded from wrapping. It has to be
like this, because everything including tags etc needs to be
in a single line.
- Carsten
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-28 23:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 14:01 fill-paragraph Leo
2009-10-28 16:10 ` fill-paragraph Andreas Politz
2009-10-28 23:08 ` fill-paragraph Leo
-- strict thread matches above, loose matches on Subject: below --
2007-07-12 3:55 fill-paragraph Scott Otterson
2007-07-12 19:28 ` fill-paragraph Carsten Dominik
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.