Emacs: Don't auto-save when focus switches to lsp-mode's signature view
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user