feat: emacs - auto save on focus-out

This commit is contained in:
Ryan Yin
2024-01-03 00:54:59 +08:00
parent 26e5a3d12e
commit c9102ead4f
3 changed files with 39 additions and 20 deletions
@@ -83,3 +83,11 @@
("TAB" . 'copilot-accept-completion)
("C-TAB" . 'copilot-accept-completion-by-word)
("C-<tab>" . 'copilot-accept-completion-by-word)))
(use-package super-save
:ensure t
:config
(super-save-mode +1)
(setq super-save-auto-save-when-idle t)
(setq super-save-all-buffers t)
(setq super-save-delete-trailing-whitespace t))
@@ -8,6 +8,9 @@
(package! copilot
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el" "dist")))
(package! super-save
:recipe (:host github :repo "bbatsov/super-save" :files ("*.el" "dist")))
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;; (package! some-package)