mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-12-26 06:28:04 +01:00
Add isearch-mode icon
This commit is contained in:
parent
7c28163776
commit
fcbc6b47bc
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue