From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Per-File Auto fill mode? Date: Mon, 28 Apr 2003 16:53:26 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87k7dhhaml.fsf@ID-87814.user.dfncis.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051541783 22955 80.91.224.249 (28 Apr 2003 14:56:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 14:56:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 16:56:20 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19AA3I-0005xo-00 for ; Mon, 28 Apr 2003 16:56:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AA3L-0004UX-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2003 10:56:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!dialin-145-254-191-213.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: dialin-145-254-191-213.arcor-ip.net (145.254.191.213) Original-X-Trace: fu-berlin.de 1051541658 11265970 145.254.191.213 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:KYQVoXDM98NKhtcq3ljjGwYnhsU= Original-Xref: shelby.stanford.edu gnu.emacs.help:112454 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8951 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8951 gebser@ameritech.net writes: > Thanks much, Oliver, > > I was just wondering how to do this very thing, so you've helped twice. > However, I want to use outline mode and turn off auto-fill. I've got > the first part, but not the second, i.e., > > % -*- mode: outline; auto-fill nil; -*- [The leading “%” is a comment-char, it is necessary only for LaTeX-files.] Well, the line I posted earlier actually _toggles_ auto-fill-mode, so if your have it normally turned _off_, you can use the same line. A better solution would be to use something like this: -*-mode: outline; eval: (auto-fill-mode -1) -*- But this has the disadvantage that you are queried each time you open the file whether you want the local variables section to be evaluated. Is there any reason why you don't have auto-fill-mode turned on by default? For example with: (add-hook 'text-mode-hook 'turn-on-auto-fill) This would also work for outline-mode. Then if you don't want this for some text-mode derivative, you can turn it off: (add-hook 'some-special-mode-hook (lambda () (auto-fill-mode -1))) Oliver -- 9 Floréal an 211 de la Révolution Liberté, Egalité, Fraternité!