unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Disable automatic line breaks
@ 2007-11-30 14:53 Bettina Kraus
  2007-11-30 15:31 ` Johan Bockgård
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Bettina Kraus @ 2007-11-30 14:53 UTC (permalink / raw)
  To: help-gnu-emacs

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!! Does anyone know how to disable this?

Thank you,

Bettina

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

* Re: Disable automatic line breaks
  2007-11-30 14:53 Disable automatic line breaks Bettina Kraus
@ 2007-11-30 15:31 ` Johan Bockgård
  2007-12-01  9:21 ` Eli Zaretskii
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Johan Bockgård @ 2007-11-30 15:31 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

* Re: Disable automatic line breaks
  2007-11-30 14:53 Disable automatic line breaks Bettina Kraus
  2007-11-30 15:31 ` Johan Bockgård
@ 2007-12-01  9:21 ` Eli Zaretskii
       [not found] ` <mailman.4384.1196500914.18990.help-gnu-emacs@gnu.org>
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2007-12-01  9:21 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Bettina Kraus <bettinakraus1@gmx.de>
> Date: Fri, 30 Nov 2007 06:53:40 -0800 (PST)
> 
> 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!! Does anyone know how to disable this?

M-x auto-fill-mode RET

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

* Re: Disable automatic line breaks
       [not found] ` <mailman.4384.1196500914.18990.help-gnu-emacs@gnu.org>
@ 2007-12-01 10:16   ` David Kastrup
  0 siblings, 0 replies; 6+ messages in thread
From: David Kastrup @ 2007-12-01 10:16 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Bettina Kraus <bettinakraus1@gmx.de>
>> Date: Fri, 30 Nov 2007 06:53:40 -0800 (PST)
>> 
>> 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!! Does anyone know how to disable this?
>
> M-x auto-fill-mode RET

With Emacs 22, a right click on the "Fill" in the mode line should make
it possible to toggle fill-mode, too.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: Disable automatic line breaks
  2007-11-30 14:53 Disable automatic line breaks Bettina Kraus
                   ` (2 preceding siblings ...)
       [not found] ` <mailman.4384.1196500914.18990.help-gnu-emacs@gnu.org>
@ 2007-12-01 10:48 ` Peter Dyballa
  2007-12-01 17:38 ` Exal de Jesus Garcia Carrillo
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-12-01 10:48 UTC (permalink / raw)
  To: Bettina Kraus; +Cc: help-gnu-emacs


Am 30.11.2007 um 15:53 schrieb Bettina Kraus:

> 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!! Does anyone know how to disable this?


Why does it make you crazy? TeX does not get confused by spaces or  
line breaks. Anyway, another option is to use (file) local variables  
at the end:

%%% Local Variables:
%%% mode: LaTeX
%%% fill-column: 99999
%%% coding: iso-8859-15
%%% End:


Invoking M-x describe-mode RET can deliver some clue(s).

--
Mit friedvollen Grüßen

   Pete

There are two major products that come out of Berkeley: LSD and UNIX.  
We don't believe this to be a coincidence.
                                          - Jeremy S. Anderson

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

* Re: Disable automatic line breaks
  2007-11-30 14:53 Disable automatic line breaks Bettina Kraus
                   ` (3 preceding siblings ...)
  2007-12-01 10:48 ` Peter Dyballa
@ 2007-12-01 17:38 ` Exal de Jesus Garcia Carrillo
  4 siblings, 0 replies; 6+ messages in thread
From: Exal de Jesus Garcia Carrillo @ 2007-12-01 17:38 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bettina Kraus em gnu.emacs.help escreveu :

> 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!! Does anyone know how to disable this?

Hi, set `truncate-lines' to `t' or `nil' deppending of your needs.


- -- 
Spam protection: 
In my e-mail replace the words `no-spam' with `exal'.


.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFHUZwqoZmxoVJRtGIRAg1iAJ4uwUXhdh0FDn7gYDnXz3jDnXze9ACgh8zs
xg9Rv0mByf/O/FXiZsl0kdk=
=WDa7
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2007-12-01 17:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-30 14:53 Disable automatic line breaks Bettina Kraus
2007-11-30 15:31 ` Johan Bockgård
2007-12-01  9:21 ` Eli Zaretskii
     [not found] ` <mailman.4384.1196500914.18990.help-gnu-emacs@gnu.org>
2007-12-01 10:16   ` David Kastrup
2007-12-01 10:48 ` Peter Dyballa
2007-12-01 17:38 ` Exal de Jesus Garcia Carrillo

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).