🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Allen R Sparks Mon, 25 Jan 1993 04:49
.emacs file; text-mode-hook
#2189
Author: Allen R Sparks
Date: Mon, 25 Jan 1993 04:49
15 lines
976 bytes
The folowing is in my .emacs file:

    (setq default-major-mode 'text-mode)
    
    (setq text-mode-hook
      '(lambda () 
         (auto-fill-mode 1)
         (auto-save-mode 0)
       )
    )

Now when I bring up a file, emacs DOES place me in text-mode, and it
DOES turn on auto-fill-mode automatically, but it DOESN'T turn off
auto-save-mode.   I'm running emacs version 18.52 on the NeXT.
=== Al Sparks
Re: .emacs file; text-mode-hook
#2191
Author: Richard Levitte
Date: Mon, 25 Jan 1993 11:21
33 lines
1937 bytes
>>>>> 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                                  !                                   !
!-----------------------------------------------------------------------------!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads