Article View: comp.emacs
Article #3547Re: auto-fill-mode
From: Kai Grossjohann
Date: Tue, 26 Jan 1993 15:31
Date: Tue, 26 Jan 1993 15:31
39 lines
2541 bytes
2541 bytes
>>>>> On Tue, 26 Jan 93 04:56:34 GMT, >>>>> cc2955@sarah.albany.edu (Charley Chen) said: Charley> I ask before about how to get auto-fill-mode on whenever I use Charley> emacs and lots of people reponded and all the reponse were the same Charley> (setq text-mode-hook Charley> '(lambda () (auto-fill-mode 1))) Charley> but from what I can see I need to be in text mode or something. Charley> Usually get the (Fundamental) mode and I still do, even after Charley> putting in that thing in my .emacs. My question now is that do I Charley> have to compile it or do I need something that will switch me to Charley> text mode right away? Thanks. Hmmm... The idea in Emacs is that you don't want auto-fill-mode for, say C source files or other source code files. So they think that for each kind of file there is a special mode that does the right thing. If you really want, you can get auto-fill-mode for every file you visit by saying: (setq find-file-hooks '(lambda () (auto-fill-mode 1))) Note, however, that not every buffer belongs to a file. The *scratch* buffer you get when you start up Emacs without args does not belong to a file, so auto-fill-mode will be off there. However, I do not miss the feature of having auto-fill-mode in every buffer because my text files are usually in TeX-mode or LaTeX-mode or mail-mode or news-mode or something. Hope this gives you some info, /Kai -- Kai Grossjohann Phone (voice): 49 231 75 30 15 Baroper Str. 331 App. 510 E-Mail: W-4600 Dortmund 50 grossjoh@ls6.informatik.uni-dortmund.de Germany --
Technical Details
Message-ID:
<GROSSJOH.93Jan26153138@bonny.ls6.informatik.uni-dortmund.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!cs.utexas.edu!uwm.edu!spool.mu.edu!yale.edu!ira.uka.de!Germany.EU.net!Informatik.Uni-Dortmund.DE!fbi-news!grossjohReferences:
<1993Jan25.182227.20903@sarah.albany.edu> <C1FMB6.3nn@iapa.uucp%mailhost.ecn.uoknor.edu> <1993Jan26.045634.28599@sarah.albany.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!cs.utexas.edu!uwm.edu!spool.mu.edu!yale.edu!ira.uka.de!Germany.EU.net!Informatik.Uni-Dortmund.DE!fbi-news!grossjoh From: grossjoh@bonny.ls6.informatik.uni-dortmund.de (Kai Grossjohann) Newsgroups: comp.emacs Subject: Re: auto-fill-mode Date: 26 Jan 93 15:31:38 Organization: Universitaet Dortmund, Lehrstuhl Informatik VI Lines: 39 Message-ID: <GROSSJOH.93Jan26153138@bonny.ls6.informatik.uni-dortmund.de> References: <1993Jan25.182227.20903@sarah.albany.edu> <C1FMB6.3nn@iapa.uucp%mailhost.ecn.uoknor.edu> <1993Jan26.045634.28599@sarah.albany.edu> Reply-To: Kai Grossjohann <grossjoh@ls6.informatik.uni-dortmund.de> NNTP-Posting-Host: bonny.informatik.uni-dortmund.de In-reply-to: cc2955@sarah.albany.edu's message of Tue, 26 Jan 93 04:56:34 GMT Comments: Hyperbole mail buttons accepted, v3.06.