diff options
author | noa | 2025-02-16 22:18:06 +0800 |
---|---|---|
committer | noa | 2025-02-16 22:18:06 +0800 |
commit | da2304fafb19e451dda57d18123b2e47146cf1ed (patch) | |
tree | 8cf472443cd2d5d6a48a8396e6fc9af3308bd8fd /emacs/init.el | |
parent | 67738dfc4ec5df84f0064ffd2f9adf67f9b749e6 (diff) |
Remove super-save and replace with built-in functionality
Diffstat (limited to 'emacs/init.el')
-rw-r--r-- | emacs/init.el | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/emacs/init.el b/emacs/init.el index e6c5e10..1bf2d66 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -264,7 +264,7 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (auto-save-no-message t) ;; Always give me a line of text when i'm near the edges of the screen (scroll-margin 2) -) + ) (use-package dired :defer t @@ -319,6 +319,8 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (version-control t) ;; this will auto save to the current file (auto-save-visited-mode t) + (auto-save-visited-interval 0.1) + (save-silently t) ;; don't message when saving ) (use-package tramp :defer t @@ -381,21 +383,6 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." :custom (bookmark-default-file "~/.config/emacs/bookmarks")) -;; Saving - -;; https://reeds.website/project-write-every-change-in-emacs-buffer-to-disk -;; See here for a solution using built-in functionality -(use-package super-save - :disabled t - :ensure t - :custom - (super-save-mode t) - (super-save-auto-save-when-idle t) - (super-save-remote-files nil) - (super-save-silent t) - (super-save-delete-trailing-whitespace 'except-current-line) - (super-save-all-buffers t)) - ;; Unfill commands (defun unfill-paragraph () "Takes a multi-line paragraph and makes it into a single line of text." |