diff --git a/mood-line.el b/mood-line.el index 0b32857..5717bb4 100644 --- a/mood-line.el +++ b/mood-line.el @@ -337,12 +337,13 @@ The `Face' may be either a face symbol or a property list of key-value pairs (defun mood-line-segment-evil () "Display the current evil-mode state." - (when evil-state + (when (boundp 'evil-state) (let ((mode-cons (alist-get evil-state mood-line-evil-state-alist))) (concat (propertize (car mode-cons) 'face (cdr mode-cons)) " ")))) (defun mood-line-segment-meow () - (when meow--current-state + "Display the current meow-mode state." + (when (boundp 'meow--current-state) (let ((mode-cons (alist-get meow--current-state mood-line-meow-state-alist)))