help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable automatic line breaks


From: Johan Bockgård
Subject: Re: Disable automatic line breaks
Date: Fri, 30 Nov 2007 16:31:15 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

Bettina Kraus <bettinakraus1@gmx.de> writes:

> Hello,
>
> when I'm in TeX mode and write lines that have more than 70
> or so characters, emacs automatically breaks the line. This
> makes me crazy!!

It's called `auto-fill-mode'. It's not on by default!

> Does anyone know how to disable this?

Find the hook* that turns it on and undo it--that is, look for
code that uses something like

    turn-on-auto-fill or (auto-fill-mode 1)

and remove it, or add a hook function that turns it off:

   (add-hook 'THE-HOOK* 'turn-off-auto-fill).


[*] The most relevant hooks are

    text-mode-hook                             (all text modes)
    {tex-mode,latex-mode,plain-tex-mode}-hook  (default Emacs [La]TeX mode)
    {TeX-mode,LaTeX-mode,plain-TeX-mode}-hook  (AUCTeX)


-- 
Johan Bockgård


reply via email to

[Prev in Thread] Current Thread [Next in Thread]