mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 09:18:35 +02: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 'fennel-mode-hook #'turn-off-smartparens-mode)
|
||||||
(add-hook 'hy-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
|
;; on the command line, then restart Emacs for the changes to take effect -- or
|
||||||
;; use 'M-x doom/reload'.
|
;; use 'M-x doom/reload'.
|
||||||
|
|
||||||
(package! nerd-icons)
|
(package! super-save)
|
||||||
(package! rime)
|
(package! rime)
|
||||||
(package! wakatime-mode
|
(package! wakatime-mode
|
||||||
:recipe
|
:recipe
|
||||||
|
|||||||
Reference in New Issue
Block a user