Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable autosave for tramp buffers in emacs?

Tags:

emacs

tramp

autosave for tramp buffers is very annoying, every time it cost dozens of seconds.

I can disable it by using Alt-X auto-save-mode, Is there any way I can do to automatic disable it? maybe by using some kind of hook?

like image 217
linjunhalida Avatar asked Dec 10 '12 03:12

linjunhalida


1 Answers

You can set tramp-auto-save-directory to a local directory.

(setq tramp-auto-save-directory "~/emacs/tramp-autosave")

Update: In your case, you may set tramp-auto-save-directory to /tmp.

like image 174
louxiu Avatar answered Oct 13 '22 01:10

louxiu