Add isearch-mode icon

This commit is contained in:
Matthew Fidler 2016-04-28 23:30:39 -05:00
parent 7c28163776
commit fcbc6b47bc

View file

@ -237,6 +237,7 @@ This was stole/modified from `c-save-buffer-state'"
("\\`Image\\[xpm\\]\\'" "xpm" ext) ("\\`Image\\[xpm\\]\\'" "xpm" ext)
("\\`Image\\[png\\]\\'" "png" ext) ("\\`Image\\[png\\]\\'" "png" ext)
("\\` ?AI\\'" #xf03c FontAwesome) ("\\` ?AI\\'" #xf03c FontAwesome)
("\\` ?Isearch\\'" #xf002)
;; Diminished modes ;; Diminished modes
("\\` ?\\(?:ElDoc\\|Anzu\\|SP\\|Guide\\|PgLn\\|Undo-Tree\\|Ergo.*\\|,\\|Isearch\\|Ind\\)\\'" nil nil)) ("\\` ?\\(?:ElDoc\\|Anzu\\|SP\\|Guide\\|PgLn\\|Undo-Tree\\|Ergo.*\\|,\\|Isearch\\|Ind\\)\\'" nil nil))
"Icons for major and minor modes. "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) (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 (eval-after-load 'powerline
'(progn '(progn
(declare-function mode-icons--real-powerline-minor-modes "powerline") (declare-function mode-icons--real-powerline-minor-modes "powerline")