Browse Source

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

master
Riyyi 2 years ago
parent
commit
dcaff77c01
  1. 8
      .config/emacs/config.org

8
.config/emacs/config.org

@ -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

Loading…
Cancel
Save