Fix focus-out-hook warnings in Emacs versions >27
This commit is contained in:
parent
86bc2f092d
commit
d24c214204
2
init.el
2
init.el
@ -54,7 +54,7 @@
|
|||||||
;; 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)
|
(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))
|
(with-no-warnings (add-hook 'focus-out-hook #'garbage-collect)))
|
||||||
|
|
||||||
;;====================
|
;;====================
|
||||||
;; Variables/Basic Config.
|
;; Variables/Basic Config.
|
||||||
|
Loading…
Reference in New Issue
Block a user