From 72255f753d159ae5ff0edbe586a2d406a3a0c6d2 Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Fri, 1 Apr 2016 21:51:49 -0500 Subject: [PATCH] Fall back to mode-name if not generated yet. --- mode-icons.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode-icons.el b/mode-icons.el index 37f4a65..264fd35 100644 --- a/mode-icons.el +++ b/mode-icons.el @@ -991,7 +991,7 @@ When DONT-UPDATE is non-nil, don't call `force-mode-line-update'" "Give rich strings needed for `major-mode' viewing." (let ((active (mode-icons--selected-window-active))) (eval `(propertize ,(or (and active mode-icons-mode-name-active) - mode-icons-mode-name-inactive) + mode-icons-mode-name-inactive mode-name) ,@mode-icons-major-mode-base-text-properties)))) ;;; selected take from powerline