Fix focus change function use for Emacs 26
This commit is contained in:
parent
00c69615b8
commit
39b085fbab
2
init.el
2
init.el
@ -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.
|
||||||
|
(if (>= emacs-major-version 27)
|
||||||
(add-function :after after-focus-change-function #'garbage-collect)
|
(add-function :after after-focus-change-function #'garbage-collect)
|
||||||
|
(add-hook 'focus-out-hook #'garbage-collect))
|
||||||
|
|
||||||
;;====================
|
;;====================
|
||||||
;; Variables/Basic Config.
|
;; Variables/Basic Config.
|
||||||
|
Loading…
Reference in New Issue
Block a user