From b4917bfa2a2e5968acdd79e12fa55fbb684b576a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 28 May 2017 02:37:58 +0200 Subject: [PATCH] ui/doom: blink on focus-in & refactor --- modules/ui/doom/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/doom/config.el b/modules/ui/doom/config.el index 2a7e9af1e..91a310f98 100644 --- a/modules/ui/doom/config.el +++ b/modules/ui/doom/config.el @@ -44,8 +44,7 @@ (load-theme +doom-theme t) ;; nlinum line highlighting - (when (featurep 'nlinum) - (doom-themes-nlinum-config)) + (doom-themes-nlinum-config) ;; Add file icons to doom-neotree (doom-themes-neotree-config) @@ -78,7 +77,7 @@ (doom-buffer-mode -1))) (add-hook 'doom-popup-mode-hook #'+doom|buffer-mode-off) - ;; + ;; restore `doom-buffer-mode' when loading a persp-mode session (add-hook '+workspaces-load-session-hook #'+doom|restore-bright-buffers) ;; Extra modes to activate doom-buffer-mode in @@ -125,6 +124,7 @@ ;; NOTE In :feature jump `recenter' is hooked to a bunch of jumping commands, ;; which will trigger nav-flash. + (add-hook 'focus-in-hook #'+doom/blink-cursor) (advice-add #'windmove-do-window-select :around #'+doom*blink-cursor-maybe) (advice-add #'recenter :around #'+doom*blink-cursor-maybe)