* Disable auto-save-mode in .emacs
@ 2005-04-13 15:46 JS
2005-04-13 15:49 ` Greg Rowe
2005-04-13 15:53 ` B.T. Raven
0 siblings, 2 replies; 8+ messages in thread
From: JS @ 2005-04-13 15:46 UTC (permalink / raw)
I know I can just press M-x auto-save-mode when I enter emacs. But is it
possible to write something in my .emacs file so I auto-save-mode always is
turned off in all buffers?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Disable auto-save-mode in .emacs
2005-04-13 15:46 Disable auto-save-mode in .emacs JS
@ 2005-04-13 15:49 ` Greg Rowe
2005-04-13 18:39 ` JS
2005-04-13 15:53 ` B.T. Raven
1 sibling, 1 reply; 8+ messages in thread
From: Greg Rowe @ 2005-04-13 15:49 UTC (permalink / raw)
JS wrote:
> I know I can just press M-x auto-save-mode when I enter emacs. But is it
> possible to write something in my .emacs file so I auto-save-mode always is
> turned off in all buffers?
Yes. The following should do what you are requesting:
(setq auto-save-default nil)
BTW, I came to this answer by running M-x apropos auto-save. The manual
for emacs is pretty good and the apropos command is a life saver for all
things emacs. :)
Greg
--
Home is where the .bashrc is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Disable auto-save-mode in .emacs
2005-04-13 15:49 ` Greg Rowe
@ 2005-04-13 18:39 ` JS
2005-04-13 18:58 ` Albert Reiner
0 siblings, 1 reply; 8+ messages in thread
From: JS @ 2005-04-13 18:39 UTC (permalink / raw)
Greg Rowe wrote:
> JS wrote:
>> I know I can just press M-x auto-save-mode when I enter emacs. But is it
>> possible to write something in my .emacs file so I auto-save-mode always
>> is turned off in all buffers?
>
> Yes. The following should do what you are requesting:
>
> (setq auto-save-default nil)
>
> BTW, I came to this answer by running M-x apropos auto-save. The manual
> for emacs is pretty good and the apropos command is a life saver for all
> things emacs. :)
>
> Greg
>
I can only type:
M-x apropos-auto-save
For some reason it won't omit the "-" between "apropos" and "auto"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Disable auto-save-mode in .emacs
2005-04-13 18:39 ` JS
@ 2005-04-13 18:58 ` Albert Reiner
2005-04-13 19:08 ` JS
0 siblings, 1 reply; 8+ messages in thread
From: Albert Reiner @ 2005-04-13 18:58 UTC (permalink / raw)
[JS <d44sf@44ada.com>, Wed, 13 Apr 2005 20:39:02 +0200]:
> I can only type:
>
> M-x apropos-auto-save
>
> For some reason it won't omit the "-" between "apropos" and "auto"
Try: M-x apropos RET auto-save RET
HTH,
Albert.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Disable auto-save-mode in .emacs
2005-04-13 18:58 ` Albert Reiner
@ 2005-04-13 19:08 ` JS
2005-04-13 19:15 ` Albert Reiner
2005-04-13 19:24 ` Jim Davidson
0 siblings, 2 replies; 8+ messages in thread
From: JS @ 2005-04-13 19:08 UTC (permalink / raw)
Albert Reiner wrote:
> [JS <d44sf@44ada.com>, Wed, 13 Apr 2005 20:39:02 +0200]:
>> I can only type:
>>
>> M-x apropos-auto-save
>>
>> For some reason it won't omit the "-" between "apropos" and "auto"
>
> Try: M-x apropos RET auto-save RET
>
> HTH,
>
> Albert.
Hehe thanks...then I get a list of auto-save functions, but I don't see
anywhere that that you could put:
(setq auto-save-default nil)
in you .emacs file to permanently turn off auto-save.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Disable auto-save-mode in .emacs
2005-04-13 19:08 ` JS
@ 2005-04-13 19:15 ` Albert Reiner
2005-04-13 19:24 ` Jim Davidson
1 sibling, 0 replies; 8+ messages in thread
From: Albert Reiner @ 2005-04-13 19:15 UTC (permalink / raw)
[JS <d44sf@44ada.com>, Wed, 13 Apr 2005 21:08:23 +0200]:
> Hehe thanks...then I get a list of auto-save functions, but I don't see
> anywhere that that you could put:
>
> (setq auto-save-default nil)
>
> in you .emacs file to permanently turn off auto-save.
In the *Apropos* buffer I see:
,----
| auto-save-default
| Variable: *Non-nil says by default do auto-saving of every file-visiting buffer.
| Plist: standard-value variable-documentation custom-type custom-requests
`----
So by setting that variable to NIL (which is the only value that is
not non-nil) you disable auto-saving. For setting some symbol to some
value you can use SETQ, or set-variable.
``C-h v auto-save-default RET'' indicates that one can also change its
value with customize which I have never used but seems to be regarded
as more intuitive.
Albert.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Disable auto-save-mode in .emacs
2005-04-13 19:08 ` JS
2005-04-13 19:15 ` Albert Reiner
@ 2005-04-13 19:24 ` Jim Davidson
1 sibling, 0 replies; 8+ messages in thread
From: Jim Davidson @ 2005-04-13 19:24 UTC (permalink / raw)
On 4/13/05 12:08 PM, JS wrote:
> Albert Reiner wrote:
>
>
>>[JS <d44sf@44ada.com>, Wed, 13 Apr 2005 20:39:02 +0200]:
>>
>>>I can only type:
>>>
>>>M-x apropos-auto-save
>>>
>>>For some reason it won't omit the "-" between "apropos" and "auto"
>>
>>Try: M-x apropos RET auto-save RET
>>
>>HTH,
>>
>>Albert.
>
>
>
> Hehe thanks...then I get a list of auto-save functions, but I don't see
> anywhere that that you could put:
>
> (setq auto-save-default nil)
>
> in you .emacs file to permanently turn off auto-save.
Huh?
I get:
auto-save-default
Variable: *Non-nil says by default do auto-saving of every
file-visiting buffer.
and if you middle-click on Variable, you get:
auto-save-default's value is t
*Non-nil says by default do auto-saving of every file-visiting buffer.
That tells you what you need to know.
-Jim
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Disable auto-save-mode in .emacs
2005-04-13 15:46 Disable auto-save-mode in .emacs JS
2005-04-13 15:49 ` Greg Rowe
@ 2005-04-13 15:53 ` B.T. Raven
1 sibling, 0 replies; 8+ messages in thread
From: B.T. Raven @ 2005-04-13 15:53 UTC (permalink / raw)
"JS" <d44sf@44ada.com> wrote in message
news:d3jeag$sr5$1@news.net.uni-c.dk...
> I know I can just press M-x auto-save-mode when I enter emacs. But is
it
> possible to write something in my .emacs file so I auto-save-mode
always is
> turned off in all buffers?
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste
it!
;; Your init file should contain only one such instance.
.
.
.
.
'(auto-save-default nil))
Ed
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-04-13 19:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-13 15:46 Disable auto-save-mode in .emacs JS
2005-04-13 15:49 ` Greg Rowe
2005-04-13 18:39 ` JS
2005-04-13 18:58 ` Albert Reiner
2005-04-13 19:08 ` JS
2005-04-13 19:15 ` Albert Reiner
2005-04-13 19:24 ` Jim Davidson
2005-04-13 15:53 ` B.T. Raven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).