|
|
@ -191,6 +191,14 @@ Install and configure packages. |
|
|
|
(use-package super-save |
|
|
|
(use-package super-save |
|
|
|
:config |
|
|
|
:config |
|
|
|
(setq super-save-auto-save-when-idle t) |
|
|
|
(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)) |
|
|
|
(super-save-mode)) |
|
|
|
#+END_SRC |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|