Skip to content

Commit d90eb08

Browse files
committed
Recalculate fci rule image when switching themes
1 parent 4f82514 commit d90eb08

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

init-editing-utils.el

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,14 @@
161161
"Restore fci-mode when all popups have closed"
162162
(when (and (not popup-instances) sanityinc/fci-mode-suppressed)
163163
(setq sanityinc/fci-mode-suppressed nil)
164-
(turn-on-fci-mode))))
164+
(turn-on-fci-mode)))
165+
166+
;; Regenerate fci-mode line images after switching themes
167+
(defadvice load-theme (after recompute-fci-face activate)
168+
(dolist (buffer (buffer-list))
169+
(with-current-buffer buffer
170+
(when fci-mode
171+
(turn-on-fci-mode))))))
165172

166173

167174
;;----------------------------------------------------------------------------

0 commit comments

Comments
 (0)