mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-02-22 16:07:40 +01:00
feat: emacs - save buffers when they lose focus
This commit is contained in:
@@ -168,4 +168,14 @@
|
||||
(add-hook 'fennel-mode-hook #'turn-off-smartparens-mode)
|
||||
(add-hook 'hy-mode-hook #'turn-off-smartparens-mode)
|
||||
|
||||
;; auto-save
|
||||
(use-package super-save
|
||||
:ensure t
|
||||
:config
|
||||
(super-save-mode +1)
|
||||
(setq super-save-auto-save-when-idle t)
|
||||
(setq auto-save-default nil))
|
||||
|
||||
;; save on find-file
|
||||
(add-to-list 'super-save-hook-triggers 'find-file-hook)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
;; on the command line, then restart Emacs for the changes to take effect -- or
|
||||
;; use 'M-x doom/reload'.
|
||||
|
||||
(package! nerd-icons)
|
||||
(package! super-save)
|
||||
(package! rime)
|
||||
(package! wakatime-mode
|
||||
:recipe
|
||||
|
||||
Reference in New Issue
Block a user