help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-saving files


From: Tassilo Horn
Subject: Re: auto-saving files
Date: Sat, 22 May 2010 14:25:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

Hi Andrea,

> I've seen auto-save-mode, but how can I make it working forever for
> some buffers?

If those buffers have some special mode, add it to the mode hook:

   (add-hook 'foo-mode-hook 'auto-save-mode)

If those buffers can only be checked by their name or other properties,
hook into `find-file-hook', check these properties and enable
`auto-save-mode' there.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]