Use bound-and-true-p instead of (and (boundp ...))

This commit is contained in:
Akhil Wali 2019-10-05 09:05:05 +13:00
parent 394a1aaac0
commit 3e11008a7f

View file

@ -48,8 +48,7 @@ initialization.")
(previous-cursor-color (face-background 'cursor))
(previous-modeline-color (and (facep 'doom-modeline-bar)
(face-background 'doom-modeline-bar)))
(is-god-mode (and (boundp 'god-local-mode)
god-local-mode))
(is-god-mode (bound-and-true-p god-local-mode))
(next-cursor-type
(cond (buffer-read-only 'box)
((and overwrite-mode is-god-mode) 'hollow)