unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Formatting
@ 2012-10-12  9:27 Dieter Britz
  2012-10-12 10:14 ` Formatting Tassilo Horn
  0 siblings, 1 reply; 2+ messages in thread
From: Dieter Britz @ 2012-10-12  9:27 UTC (permalink / raw)
  To: help-gnu-emacs

I often have a list of items, and like it to look like this:

  \item bla bla bla bla bla bla bla bla bla bla bla bla 
        bla bla bla bla bla bla bla bla bla bla bla bla
        bla bla bla bla

etc. I write it like that, and as I type in more lines, they get
nicely margined in the same way.

However, if I now change the text, and then reformat using ESC-q,
it changes to

  \item bla bla bla bla bla bla bla bla bla bla bla bla 
    bla bla bla bla bla bla bla bla bla bla bla bla  
    bla bla bla bla

Can I force it to keep my chosen margins?
-- 
Dieter Britz


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

* Re: Formatting
  2012-10-12  9:27 Formatting Dieter Britz
@ 2012-10-12 10:14 ` Tassilo Horn
  0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2012-10-12 10:14 UTC (permalink / raw)
  To: help-gnu-emacs

Dieter Britz <dieterhansbritz@gmail.com> writes:

Hi Dieter,

> I often have a list of items, and like it to look like this:
>
>   \item bla bla bla bla bla bla bla bla bla bla bla bla 
>         bla bla bla bla bla bla bla bla bla bla bla bla
>         bla bla bla bla
>
> etc. I write it like that, and as I type in more lines, they get
> nicely margined in the same way.
>
> However, if I now change the text, and then reformat using ESC-q,
> it changes to
>
>   \item bla bla bla bla bla bla bla bla bla bla bla bla 
>     bla bla bla bla bla bla bla bla bla bla bla bla  
>     bla bla bla bla
>
> Can I force it to keep my chosen margins?

I assume you use AUCTeX for LaTeX editing, right?  If so, you could set

  (setq LaTeX-indent-level 6)
  (setq LaTeX-item-indent -6)

and it should fill \item paragraphs as you like.  However, now every
environment's content will be indented with 6 instead of 2 spaces, too.

Bye,
Tassilo




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

end of thread, other threads:[~2012-10-12 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12  9:27 Formatting Dieter Britz
2012-10-12 10:14 ` Formatting Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).