From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Disable automatic line breaks Date: Fri, 30 Nov 2007 16:31:15 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: References: <9ac799cc-daab-448c-8859-91e93e0e7ad3@s36g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1196437254 30606 80.91.229.12 (30 Nov 2007 15:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 15:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 16:41:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iy7yu-0005s6-Rx for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Nov 2007 16:40:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy7yf-0005ko-4e for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Nov 2007 10:40:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: remote1.student.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1196436675 13323 129.16.29.79 (30 Nov 2007 15:31:15 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Fri, 30 Nov 2007 15:31:15 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:1FCGtuiyst+kMbuZagZp0RU7csA= Original-Xref: shelby.stanford.edu gnu.emacs.help:154300 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49727 Archived-At: Bettina Kraus 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