Remove real-auto-save-mode

It caused more pain than good…
This commit is contained in:
Gergely Polonkai 2019-09-09 17:06:30 +02:00
parent 43838095ed
commit f59b86fb69
2 changed files with 0 additions and 24 deletions

View File

@ -2215,29 +2215,6 @@ pattern to look for). If it is active, it will disable it."
("C-o" . gpolonkai/toggle-loccur))) ("C-o" . gpolonkai/toggle-loccur)))
#+END_SRC #+END_SRC
** More fine-tuned autosaving
:PROPERTIES:
:SOURCE: https://www.reddit.com/r/emacs/comments/9vmljb/what_do_you_have_bound_to_mn_and_mp/e9elldc/
:END:
First, a function that turns off auto-saving for remote files.
#+BEGIN_SRC emacs-lisp
(defun gpolonkai/dont-autosave-remote ()
(when (and buffer-file-name (not (file-remote-p buffer-file-name)))
(real-auto-save-mode)))
#+END_SRC
Then configure ~real-auto-save-mode~
#+BEGIN_SRC emacs-lisp
(use-package real-auto-save
:demand t
:hook
(text-mode . gpolonkai/dont-autosave-remote)
(prog-mode . gpolonkai/dont-autosave-remote))
#+END_SRC
** Help merging ~pacsave~ and ~pacnew~ files ** Help merging ~pacsave~ and ~pacnew~ files
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp

View File

@ -172,7 +172,6 @@
pyvenv pyvenv
rainbow-delimiters rainbow-delimiters
rainbow-mode rainbow-mode
real-auto-save
restclient restclient
restclient-helm restclient-helm
s s