Emacs: Fix auto-save fix :^)

This commit is contained in:
Riyyi
2022-08-28 22:32:30 +02:00
parent dcaff77c01
commit 008efd440b
+1 -1
View File
@@ -195,7 +195,7 @@ Install and configure packages.
;; Fix for issues: super-save #38 and lsp-mode #1322 ;; Fix for issues: super-save #38 and lsp-mode #1322
(defun dot/super-save-disable-advice (orig-fun &rest args) (defun dot/super-save-disable-advice (orig-fun &rest args)
"Dont auto-save under these conditions." "Dont auto-save under these conditions."
(unless (string= (car args) " *LV*") (unless (equal (car args) " *LV*")
(apply orig-fun args))) (apply orig-fun args)))
(advice-add 'super-save-command-advice :around #'dot/super-save-disable-advice) (advice-add 'super-save-command-advice :around #'dot/super-save-disable-advice)