Remove real-auto-save-mode
It caused more pain than good…
This commit is contained in:
parent
43838095ed
commit
f59b86fb69
@ -2215,29 +2215,6 @@ pattern to look for). If it is active, it will disable it."
|
||||
("C-o" . gpolonkai/toggle-loccur)))
|
||||
#+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
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
@ -172,7 +172,6 @@
|
||||
pyvenv
|
||||
rainbow-delimiters
|
||||
rainbow-mode
|
||||
real-auto-save
|
||||
restclient
|
||||
restclient-helm
|
||||
s
|
||||
|
Loading…
Reference in New Issue
Block a user