From fcbc6b47bc4bd5e6b936733d4f037f598e2adf94 Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Thu, 28 Apr 2016 23:30:39 -0500 Subject: [PATCH] Add isearch-mode icon --- mode-icons.el | 5 +++++ 1 file changed, 5 insertions(+) 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")