diff --git a/mode-icons.el b/mode-icons.el index 0146014..453e95a 100644 --- a/mode-icons.el +++ b/mode-icons.el @@ -237,6 +237,7 @@ This was stole/modified from `c-save-buffer-state'" ("\\`Image\\[xpm\\]\\'" "xpm" ext) ("\\`Image\\[png\\]\\'" "png" ext) ("\\` ?AI\\'" #xf03c FontAwesome) + ("\\` ?Isearch\\'" #xf002) ;; Diminished modes ("\\` ?\\(?:ElDoc\\|Anzu\\|SP\\|Guide\\|PgLn\\|Undo-Tree\\|Ergo.*\\|,\\|Isearch\\|Ind\\)\\'" nil nil)) "Icons for major and minor modes. @@ -1713,6 +1714,10 @@ When ENABLE is non-nil, enable the changes to the mode line." (add-hook 'emacs-startup-hook #'mode-icons-reset) +(defadvice isearch-mode (after mode-icons--reset-isearch-icon activate) + "Make `mode-icons' aware of icon." + (mode-icons-set-minor-mode-icon)) + (eval-after-load 'powerline '(progn (declare-function mode-icons--real-powerline-minor-modes "powerline")