Emacs: Don't auto-save when focus switches to lsp-mode's signature view

This commit is contained in:
Riyyi
2022-08-28 21:38:40 +02:00
parent b28a885af9
commit dcaff77c01
+8
View File
@@ -191,6 +191,14 @@ Install and configure packages.
(use-package super-save
:config
(setq super-save-auto-save-when-idle t)
;; Fix for issues: super-save #38 and lsp-mode #1322
(defun dot/super-save-disable-advice (orig-fun &rest args)
"Dont auto-save under these conditions."
(unless (string= (car args) " *LV*")
(apply orig-fun args)))
(advice-add 'super-save-command-advice :around #'dot/super-save-disable-advice)
(super-save-mode))
#+END_SRC