diff options
-rw-r--r-- | init.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/init.el b/init.el index 07f856c..e25f955 100644 --- a/init.el +++ b/init.el | |||
@@ -295,8 +295,9 @@ | |||
295 | 295 | ||
296 | (auto-save-visited-mode +1) | 296 | (auto-save-visited-mode +1) |
297 | 297 | ||
298 | (when-unfocused save-some-buffers | 298 | (add-hook 'unfocused-hook |
299 | (save-some-buffers t))) | 299 | (defun unfocused@save-buffers () |
300 | (save-some-buffers t)))) | ||
300 | 301 | ||
301 | (setup flyspell | 302 | (setup flyspell |
302 | (setq-default ispell-program-name "hunspell" | 303 | (setq-default ispell-program-name "hunspell" |
@@ -330,8 +331,8 @@ | |||
330 | nil 'client) | 331 | nil 'client) |
331 | " Client"))) | 332 | " Client"))) |
332 | window-resize-pixelwise t) | 333 | window-resize-pixelwise t) |
333 | (when-unfocused garbage-collect | 334 | |
334 | (garbage-collect))) | 335 | (add-hook 'unfocused-hook #'garbage-collect)) |
335 | 336 | ||
336 | (setup gnus | 337 | (setup gnus |
337 | (:option gnus-home-directory (expand-file-name "gnus" user-emacs-directory) | 338 | (:option gnus-home-directory (expand-file-name "gnus" user-emacs-directory) |
@@ -979,6 +980,11 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
979 | 980 | ||
980 | (global-undo-fu-session-mode +1)) | 981 | (global-undo-fu-session-mode +1)) |
981 | 982 | ||
983 | (setup (:straight (unfocused | ||
984 | :host github | ||
985 | :repo "duckwork/unfocused")) | ||
986 | (unfocused-mode +1)) | ||
987 | |||
982 | (setup (:straight (vertico | 988 | (setup (:straight (vertico |
983 | :host github | 989 | :host github |
984 | :repo "minad/vertico")) | 990 | :repo "minad/vertico")) |