unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: Per-File Auto fill mode?
Date: Mon, 28 Apr 2003 16:53:26 +0200	[thread overview]
Message-ID: <uof2q4qs9.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: mailman.5251.1051451759.21513.help-gnu-emacs@gnu.org

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é!

  parent reply	other threads:[~2003-04-28 14:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-25 22:46 Per-File Auto fill mode? Linards Ticmanis
2003-04-26  9:27 ` Oliver Scholz
2003-04-26 14:30   ` Linards Ticmanis
2003-04-27 13:58   ` gebser
     [not found]   ` <mailman.5251.1051451759.21513.help-gnu-emacs@gnu.org>
2003-04-28 14:53     ` Oliver Scholz [this message]
2003-05-01 14:01       ` gebser
2003-04-26 14:31 ` Kai Großjohann
2003-04-27  8:23   ` Karl Eichwalder
2003-04-27 12:02     ` Kai Großjohann
2003-04-27 13:08       ` Karl Eichwalder
2003-04-27 14:02         ` Kai Großjohann
2003-04-27 17:21           ` Karl Eichwalder
2003-04-27 19:10             ` Kai Großjohann
2003-04-27 13:01     ` Oliver Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uof2q4qs9.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).