summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-04 23:25:35 -0500
committerCase Duckworth2021-05-04 23:25:35 -0500
commit5ed26881495a603c169effda4cf794a3c2797d8a (patch)
treeeb25a41056586b4bb9714ec552a07d30e48611dd
parentMerge branch 'main' of https://tildegit.org/acdw/emacs (diff)
downloademacs-5ed26881495a603c169effda4cf794a3c2797d8a.tar.gz
emacs-5ed26881495a603c169effda4cf794a3c2797d8a.zip
Add unfocused
-rw-r--r--init.el14
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"))