Fix focus change function use for Emacs 26
This commit is contained in:
parent
00c69615b8
commit
39b085fbab
4
init.el
4
init.el
@ -52,7 +52,9 @@
|
||||
(add-hook 'minibuffer-exit-hook #'restore-garbage-collection)
|
||||
|
||||
;; 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.
|
||||
|
Loading…
Reference in New Issue
Block a user