home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / help / 5493 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.9 KB  |  48 lines

  1. Xref: sparky gnu.emacs.help:5493 comp.sys.next.misc:24054
  2. Newsgroups: gnu.emacs.help,comp.sys.next.misc
  3. Path: sparky!uunet!mcsun!sunic!kth.se!news.kth.se!LEVITTE
  4. From: LEVITTE@e.kth.se (Richard Levitte)
  5. Subject: Re: .emacs file; text-mode-hook
  6. In-Reply-To: fxars@camelot.acf-lab.alaska.edu's message of Mon, 25 Jan 1993 04:49:13 GMT
  7. Message-ID: <LEVITTE.93Jan25122142@elin.e.kth.se>
  8. Sender: usenet@kth.se (Usenet)
  9. Nntp-Posting-Host: elin.e.kth.se
  10. Organization: Department of TeleTransmission Theory
  11. References: <FXARS.93Jan24194913@rama2.acf-lab.alaska.edu>
  12. Date: Mon, 25 Jan 1993 11:21:42 GMT
  13. Lines: 33
  14.  
  15. >>>>> On Mon, 25 Jan 1993 04:49:13 GMT, fxars@camelot.acf-lab.alaska.edu (Allen R Sparks) said:
  16.  
  17. ARS> The folowing is in my .emacs file:
  18.  
  19. ARS>     (setq default-major-mode 'text-mode)
  20. ARS>     
  21. ARS>     (setq text-mode-hook
  22. ARS>       '(lambda () 
  23. ARS>          (auto-fill-mode 1)
  24. ARS>          (auto-save-mode 0)
  25. ARS>        )
  26. ARS>     )
  27.  
  28. ARS> Now when I bring up a file, emacs DOES place me in text-mode, and it
  29. ARS> DOES turn on auto-fill-mode automatically, but it DOESN'T turn off
  30. ARS> auto-save-mode.   I'm running emacs version 18.52 on the NeXT.
  31.  
  32. From the documentation of auto-save-mode:
  33.  
  34.     auto-save-mode:
  35.     Toggle auto-saving of contents of current buffer.
  36.     With arg, turn auto-saving on if arg is positive, else off.
  37.  
  38. Now, the question is, does Emacs consider 0 to be a positive number
  39. or not. I think it does. I would -1 instead of 0 if I were you.
  40.  
  41. --
  42. !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++!
  43. ! Richard Levitte, VMS GNU Emacs hacker   ! tel: int+46-8-18 30 99            !
  44. ! Sulv"agen 57, II                        ! fax: none for the moment          !
  45. ! S-126 40 H"agersten                     ! Internet: levitte@e.kth.se        !
  46. ! SWEDEN                                  !                                   !
  47. !-----------------------------------------------------------------------------!
  48.