1

Fix focus change function use for Emacs 26

This commit is contained in:
Jessie Hildebrandt 2020-08-29 18:14:11 -04:00
parent 00c69615b8
commit 39b085fbab

View File

@ -52,7 +52,9 @@
(add-hook 'minibuffer-exit-hook #'restore-garbage-collection) (add-hook 'minibuffer-exit-hook #'restore-garbage-collection)
;; Collect all garbage whenever the focus changes to/from Emacs. ;; Collect all garbage whenever the focus changes to/from Emacs.
(add-function :after after-focus-change-function #'garbage-collect) (if (>= emacs-major-version 27)
(add-function :after after-focus-change-function #'garbage-collect)
(add-hook 'focus-out-hook #'garbage-collect))
;;==================== ;;====================
;; Variables/Basic Config. ;; Variables/Basic Config.