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