From f59b86fb6934ea894fd96c559a099ace4f59676a Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 9 Sep 2019 17:06:30 +0200 Subject: [PATCH] Remove real-auto-save-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It caused more pain than good… --- configuration.org | 23 ----------------------- customizations.el | 1 - 2 files changed, 24 deletions(-) diff --git a/configuration.org b/configuration.org index 8d1b68e..5ec8285 100644 --- a/configuration.org +++ b/configuration.org @@ -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 diff --git a/customizations.el b/customizations.el index 245fcaf..70c8463 100644 --- a/customizations.el +++ b/customizations.el @@ -172,7 +172,6 @@ pyvenv rainbow-delimiters rainbow-mode - real-auto-save restclient restclient-helm s