Questions tagged [auto-save]

The generic concept of automatically saving information to the disk or to a remote server, triggered by a timer or any other event inside of Emacs.

Use this tag if your question directly relates to Emacs autosave behavior.

72 questions
15
votes
3 answers

How to place all auto-save files in a directory

I would like to put all of my auto-save files into a directory, say something like ~/.emacs-saves Based on what's written in the wiki, I came up with this: (setq backup-by-copying t ; don't clobber symlinks backup-directory-alist '(("."…
Spacemoose
  • 877
  • 1
  • 7
  • 18
15
votes
4 answers

Disabling the "Auto-saving...done" message

I want my documents to be auto-saved, but I don't want to be interrupted with the message "Auto-saving...done" every few minutes. Is there a way to just disable this message, but not the auto-saving functionality? I have tried the following without…
scaramouche
  • 1,772
  • 10
  • 24
9
votes
2 answers

How to autosave a buffer to the original file on disk?

I want Emacs to auto-save a buffer or buffers so that I don't have to press C-x C-s each time. With auto-save turned on, I see the label "Auto-saving.... Done", which appears once in 30 seconds or so. But why is the document still not saved? After…
Oskar K.
  • 278
  • 1
  • 7
9
votes
1 answer

How to disable auto-save in emacs only for files opened as root

I want to use emacs auto-save feature with tramp, but only for file that I don't open using sudo. My current configuration, based on the tramp documentation, looks like this: ;;;;;;;; BAKUCP ;;;;;;;; ;; Backup remote files locally to stop autosave…
radious
  • 231
  • 1
  • 3
9
votes
1 answer

Disable prompting to auto-recover when auto-save data is the same as file

When I kill emacs (with killall emacs from a shell prompt, for example), and I was editing a file, Emacs restarts with a message filename has auto save data; consider M-x recover-this-file If I had recently saved the file, then modified it and…
serv-inc
  • 816
  • 6
  • 26
9
votes
4 answers

Save buffer at each modification

I'd like to know if it is possible the buffer is saved at the exact moment of modification; at the instant of the key up event.
7
votes
1 answer

Keep auto-save files out of directory

I found different solutions for keeping auto-save files out of the directory where the original file is located on the internet, including (defconst emacs-tmp-dir (format "%s/%s%s/" "/t" "emacs" (user-uid))) (setq backup-directory-alist …
UTF-8
  • 885
  • 6
  • 22
7
votes
1 answer

Auto-save buffers that aren't visiting files

I often do something like: C-x b foobarbaz RET to get a new buffer for taking notes, etc. I'd love for emacs to just snapshot and dump all open buffers to disk occasionally. There's lots of documentation out there for improving auto-save and backup…
Chris Clark
  • 173
  • 4
6
votes
2 answers

Emacs doesn't let me exit without selecting a coding system

Sometimes to speed up of opening an emacs' eshell directly from terminal (in my case from MS DOS prompt), I do emacs -Q -f eshell. But when I try to exit emacs doesn't let it, unless I give some input to the below message in the mini-buffer. select…
Name
  • 7,689
  • 4
  • 38
  • 84
5
votes
2 answers

untracked ".#file" in a git repository?

Q: where do untracked .#files come from when working in a git repository? When working on file example.txt in a git repository, I occasionally get an untracked file showing up in status titled .#example.txt (that is, dot-hash-filename). (This…
Dan
  • 32,584
  • 6
  • 98
  • 168
5
votes
1 answer

Autosave *scratch* to a directory

When typing ls in my home directory, I amm greeted by a lot of this: #%2Ascratch%2A#1399_po# #%2Ascratch%2A#14484YsZ# [...] I also have the following in my init.el (defvar autosave-location (concat user-emacs-directory "data/autosave")) (setq…
PythonNut
  • 10,243
  • 2
  • 29
  • 75
5
votes
2 answers

save a particular buffer without prompting on emacs exit?

I have a particular buffer that collects statistics from my emacs sessions. I could write the buffer every time I update the statistics, but that's not efficient. I want to auto-write the buffer whenever I quit emacs. I have normal auto-saving…
Kevin
  • 1,308
  • 8
  • 20
4
votes
1 answer

Buffer file replaced with lockfile/backupfile location

I have been suffering this issue for a few months, unable to reproduce it until now. In short, the issue is that when creating a new file, editing it, and then deciding to rename the file, the buffer's file is replaced by the lockfile location and…
kballou
  • 123
  • 1
  • 1
  • 9
4
votes
1 answer

How can backup-directory-alist be set to save in the files directory?

I want the backup files to be created in sub-directories of the files being edited, and I have created a function returns that directory. (defun tempfilepath () (interactive) (concat (file-name-directory buffer-file-name)…
vfclists
  • 1,347
  • 1
  • 11
  • 28
4
votes
2 answers

Emacs wont reopen my files from recover session

I was working in emacs when had a power outage, so my computer was knocked offline. After I got the computer back up, I launched emacs and tried to restore the last session. Emacs then said: "No files can be recovered from this session now". All my…
9716278
  • 173
  • 6
1
2 3 4 5