home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / emacs / 4073 < prev    next >
Encoding:
Text File  |  1993-01-27  |  2.4 KB  |  56 lines

  1. Path: 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
  2. From: grossjoh@bonny.ls6.informatik.uni-dortmund.de (Kai Grossjohann)
  3. Newsgroups: comp.emacs
  4. Subject: Re: auto-fill-mode
  5. Date: 26 Jan 93 15:31:38
  6. Organization: Universitaet Dortmund, Lehrstuhl Informatik VI
  7. Lines: 39
  8. Message-ID: <GROSSJOH.93Jan26153138@bonny.ls6.informatik.uni-dortmund.de>
  9. References: <1993Jan25.182227.20903@sarah.albany.edu>
  10.     <C1FMB6.3nn@iapa.uucp%mailhost.ecn.uoknor.edu>
  11.     <1993Jan26.045634.28599@sarah.albany.edu>
  12. Reply-To: Kai Grossjohann <grossjoh@ls6.informatik.uni-dortmund.de>
  13. NNTP-Posting-Host: bonny.informatik.uni-dortmund.de
  14. In-reply-to: cc2955@sarah.albany.edu's message of Tue, 26 Jan 93 04:56:34 GMT
  15. Comments: Hyperbole mail buttons accepted, v3.06.
  16.  
  17. >>>>> On Tue, 26 Jan 93 04:56:34 GMT,
  18. >>>>> cc2955@sarah.albany.edu (Charley Chen) said:
  19.  
  20.   Charley> I ask before about how to get auto-fill-mode on whenever I use
  21.   Charley> emacs and lots of people reponded and all the reponse were the same
  22.  
  23.   Charley>    (setq text-mode-hook
  24.   Charley>          '(lambda () (auto-fill-mode 1)))
  25.  
  26.   Charley> but from what I can see I need to be in text mode or something.
  27.   Charley> Usually get the (Fundamental) mode and I still do, even after
  28.   Charley> putting in that thing in my .emacs.  My question now is that do I
  29.   Charley> have to compile it or do I need something that will switch me to
  30.   Charley> text mode right away?  Thanks.
  31.  
  32. Hmmm... The idea in Emacs is that you don't want auto-fill-mode for, say C
  33. source files or other source code files. So they think that for each kind of
  34. file there is a special mode that does the right thing. If you really want,
  35. you can get auto-fill-mode for every file you visit by saying:
  36.  
  37.     (setq find-file-hooks
  38.           '(lambda () (auto-fill-mode 1)))
  39.  
  40. Note, however, that not every buffer belongs to a file. The *scratch* buffer
  41. you get when you start up Emacs without args does not belong to a file, so
  42. auto-fill-mode will be off there.
  43.  
  44. However, I do not miss the feature of having auto-fill-mode in every buffer
  45. because my text files are usually in TeX-mode or LaTeX-mode or mail-mode or
  46. news-mode or something.
  47.  
  48.     Hope this gives you some info,
  49.     /Kai
  50. --
  51.   Kai Grossjohann            Phone (voice): 49 231 75 30 15
  52.   Baroper Str. 331 App. 510  E-Mail: 
  53.   W-4600 Dortmund 50         grossjoh@ls6.informatik.uni-dortmund.de
  54.   Germany                   
  55. --
  56.