mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-11-21 17:40:30 +01:00
Make sure that case in matches is preserved
This commit is contained in:
parent
4febdb5418
commit
6d592fb195
1 changed files with 16 additions and 15 deletions
|
@ -190,7 +190,7 @@ This was stole/modified from `c-save-buffer-state'"
|
|||
("Custom" #xf013 FontAwesome)
|
||||
("\\`Go\\'" "go" xpm)
|
||||
(" Rbow" "rainbow" xpm)
|
||||
(" Icy" "icy" xpm) ;; http://www.clipartpal.com/clipart_pd/weather/ice_10206.htmlr
|
||||
(" ICY" "icy" xpm) ;; http://www.clipartpal.com/clipart_pd/weather/ice_10206.htmlr
|
||||
(" Golden" "golden" xpm) ;; Icon created by Arthur Shlain from Noun Project
|
||||
("BibTeX" "bibtex" xpm)
|
||||
("C[+][+]/l" #xf10c font-mfizz)
|
||||
|
@ -451,6 +451,7 @@ ICON-SPEC should be a specification from `mode-icons'."
|
|||
|
||||
(defun mode-icons-get-icon-spec (mode)
|
||||
"Get icon spec for MODE based on regular expression."
|
||||
(let (case-fold-search)
|
||||
(catch 'found-mode
|
||||
(dolist (item mode-icons)
|
||||
(when (and (mode-icons-supported-p item)
|
||||
|
@ -464,7 +465,7 @@ ICON-SPEC should be a specification from `mode-icons'."
|
|||
(symbolp mode)
|
||||
(eq mode (car item)))))
|
||||
(throw 'found-mode item)))
|
||||
nil))
|
||||
nil)))
|
||||
|
||||
(defcustom mode-icons-show-mode-name nil
|
||||
"Show Icon and `mode-name'."
|
||||
|
|
Loading…
Reference in a new issue