From d822560b34e514b6e1d1cc037f79e375ce349dd3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 Jun 2018 02:54:14 +0200 Subject: [PATCH] Fix void-variable after-focus-change-function error This variable is introduced in the latest Emacs and the condition around it was inverted. --- modules/ui/doom-modeline/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/doom-modeline/config.el b/modules/ui/doom-modeline/config.el index c7938c3e4..85aaaaf55 100644 --- a/modules/ui/doom-modeline/config.el +++ b/modules/ui/doom-modeline/config.el @@ -55,7 +55,7 @@ (add-hook 'window-configuration-change-hook #'+doom-modeline|set-selected-window) (add-hook 'doom-after-switch-window-hook #'+doom-modeline|set-selected-window) -(if (boundp 'after-focus-change-function) +(if (not (boundp 'after-focus-change-function)) (progn (add-hook 'focus-in-hook #'+doom-modeline|set-selected-window) (add-hook 'focus-out-hook #'+doom-modeline|unset-selected-window))