seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.
https://seagle0128.github.io/doom-modeline/
GNU General Public License v3.0
1.27k stars 157 forks source link

[Bug] New Evil Modes Aren't Being Shown When Doom-Modeline-Icon and Doom-Modeline-Buffer-State-Icon both True. #730

Closed IQubic closed 1 month ago

IQubic commented 1 month ago

Thank you for the bug report

Bug description

So, I've added a new Evil State. The issue is that when I enter this new state, the modeline still shows me the ""nf-md-alpha_n_circle" symbol as if I were in still in Normal mode. Note that I currently have the default modeline settings set.

Steps to reproduce

  1. Execute the following code in an ELisp buffer:
    (evil-define-state test
    "Test state."
    :tag " <T> "
    (message (if (evil-test-state-p)
               "Enabling test state."
             "Disabling test state.")))
    1. Run M-x evil-test-state
    2. Notice that the modeline still shows the N in a circle from Nerdfonts

Expected behavior

Ideally, what I'd like, is a way to be able to set an icon and a color for each new evil mode that I add.

OS

Linux

Emacs Version

29

Emacs Configurations

Doom Emacs

Error callstack

No response

Anything else

No response

seagle0128 commented 1 month ago

It's as designed. doom-modeline doesn't support user-defined evil states, unless you override doom-modeline--evil.

Update: I've committed a patch to support user-defined states (only one state).