all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* simple question - temporarily disable autosave?
@ 2005-01-25  0:56 Mark P
  0 siblings, 0 replies; only message in thread
From: Mark P @ 2005-01-25  0:56 UTC (permalink / raw)


My emacs client normally auto-saves on a regular basis.  Here are the 
relevant bits from my .emacs that I'm sure I got from somewhere else:

;; auto-save stuff
(setq auto-save-interval 100)
(setq auto-save-timeout nil)
(setq auto-save-list-file-prefix ".saves/")
;; backup version stuff
(setq version-control t)
(setq kept-old-versions 3)
(setq kept-new-versions 5)
(setq delete-old-versions t)

The problem is when I'm in a read-only directory looking at a file and 
emacs flashes repeated warning that it's unable to auto-save.  I assume 
I can M-x auto-save-mode to turn this off as needed, but is there any 
way to make it automatically do this when I don't have write permission? 
  Better still, if I don't have write permission I'm not going to be 
modifying the file; maybe it can wait till I've made a change to the 
file before trying to auto-save?

Thanks for your help!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-25  0:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25  0:56 simple question - temporarily disable autosave? Mark P

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.