Be more careful with matching major and minor modes.

Partially addresses Issue #14
This commit is contained in:
Matthew Fidler 2016-03-24 08:19:05 -05:00
parent 6d592fb195
commit 5ceab27088

View file

@ -139,72 +139,72 @@ This was stole/modified from `c-save-buffer-state'"
(mode-icons-define-font "IcoMoon-Free") (mode-icons-define-font "IcoMoon-Free")
(defcustom mode-icons (defcustom mode-icons
`(("CSS" "css" xpm) `(("\\'CSS\\'" "css" xpm)
("Coffee" "coffee" xpm) ("\\'Coffee\\'" "coffee" xpm)
("Compilation" "compile" xpm) ("\\'Compilation\\'" "compile" xpm)
("Emacs-Lisp" "emacs" xpm) ("\\'Emacs-Lisp\\'" "emacs" xpm)
("Lisp Interaction" "emacs" xpm) ("\\'Lisp Interaction\\'" "emacs" xpm)
("HTML" "html" xpm) ("\\'HTML\\'" "html" xpm)
("Haml" "haml" xpm) ("\\'Haml\\'" "haml" xpm)
("Image[imagemagick]" "svg" xpm) ("\\'Image[imagemagick]\\'" "svg" xpm)
("Inf-Ruby" "infruby" xpm) ("\\'Inf-Ruby\\'" "infruby" xpm)
("JavaScript" "js" xpm) ("\\'JavaScript\\'" "js" xpm)
("Lisp" "cl" xpm) ("\\'Lisp\\'" "cl" xpm)
("nXML" "xml" xpm) ("\\'nXML\\'" "xml" xpm)
("Org" "org" xpm) ("\\'Org\\'" "org" xpm)
("PHP" "php" xpm) ("\\'PHP\\'" "php" xpm)
("PHP/l" "php" xpm) ("\\'PHP/l\\'" "php" xpm)
("Projectile Rails Server" "rails" xpm) ("\\'Projectile Rails Server\\'" "rails" xpm)
("Python" "python" xpm) ("\\'Python\\'" "python" xpm)
("Ruby" "ruby" xpm) ("\\'Ruby\\'" "ruby" xpm)
("ESS\\[S\\]" "R" xpm) ("\\`ESS\\[S\\]\\'" "R" xpm)
("ESS\\[SAS\\]" "sas" xpm) ("\\`ESS\\[SAS\\]\\'" "sas" xpm)
("ESS\\[BUGS\\]" #xf188 FontAwesome) ("\\`ESS\\[BUGS\\]\\'" #xf188 FontAwesome)
("iESS" "R" xpm) ("\\`iESS\\'" "R" xpm)
("SCSS" "sass" xpm) ("\\`SCSS\\'" "sass" xpm)
("Sass" "sass" xpm) ("\\`Sass\\'" "sass" xpm)
("Scheme" "scheme" xpm) ("\\`'Scheme" "scheme" xpm)
("Shell-script" "bash" xpm) ("\\`'Shell-script" "bash" xpm)
("Slim" "slim" xpm) ("\\`'Slim" "slim" xpm)
("Snippet" "yas" xpm) ("\\`'Snippet" "yas" xpm)
("Term" "term" xpm) ("\\`Term\\'" "term" xpm)
("Web" "html" xpm) ("\\`Web\\'" "html" xpm)
("XML" "xml" xpm) ("\\`XML\\'" "xml" xpm)
("YAML" "yaml" xpm) ("\\`YAML\\'" "yaml" xpm)
("YASnippet" "yas" xpm) ("\\` YASnippet\\'" "yas" xpm)
(" yas" "yas" xpm) ("\\` yas\\'" "yas" xpm)
(" hs" "hs" xpm) ("\\` hs\\'" "hs" xpm)
("Markdown" #xf0c9 github-octicons) ("\\`Markdown\\'" #xf0c9 github-octicons)
("Scala" #xf15b font-mfizz) ("\\`Scala\\'" #xf15b font-mfizz)
("Magit" #xf1d2 FontAwesome) ("\\`Magit\\'" #xf1d2 FontAwesome)
(" Pulls" #xf092 FontAwesome) ("\\` Pulls\\'" #xf092 FontAwesome)
("Zip-Archive" #xf1c6 FontAwesome) ("\\`Zip-Archive\\'" #xf1c6 FontAwesome)
("ARev" #xf021 FontAwesome) ("\\`ARev\\'" #xf021 FontAwesome)
("Calc\\(ulator\\)?" #xf1ec FontAwesome) ("\\`Calc\\(ulator\\)?\\'" #xf1ec FontAwesome)
("Debug.*" #xf188 FontAwesome) ("\\`Debug.*\\'" #xf188 FontAwesome)
("Debug.*" #xf188 FontAwesome) ("\\`Debug.*\\'" #xf188 FontAwesome)
("Calendar" #xf073 FontAwesome) ("\\`Calendar\\'" #xf073 FontAwesome)
("Help" #xf059 FontAwesome) ("\\`Help\\'" #xf059 FontAwesome)
("WoMan" #xf05a FontAwesome) ("\\`WoMan\\'" #xf05a FontAwesome)
("C/l" #xf107 font-mfizz) ("\\`C/l\\'" #xf107 font-mfizz)
("Custom" #xf013 FontAwesome) ("\\`Custom\\'" #xf013 FontAwesome)
("\\`Go\\'" "go" xpm) ("\\`Go\\'" "go" xpm)
(" Rbow" "rainbow" 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 ("\\` Golden\\'" "golden" xpm) ;; Icon created by Arthur Shlain from Noun Project
("BibTeX" "bibtex" xpm) ("\\`BibTeX\\'\\'" "bibtex" xpm)
("C[+][+]/l" #xf10c font-mfizz) ("\\`C[+][+]/l\\'" #xf10c font-mfizz)
("C[#]/l" #xf10d font-mfizz) ("\\`C[#]/l\\'" #xf10d font-mfizz)
("Elixir" #xf115 font-mfizz) ("\\`Elixir\\'" #xf115 font-mfizz)
("Erlang" #xf116 font-mfizz) ("\\`Erlang\\'" #xf116 font-mfizz)
("Haskell" #xf126 font-mfizz) ("\\`Haskell\\'" #xf126 font-mfizz)
("Clojure" #xf10a font-mfizz) ("\\`Clojure\\'" #xf10a font-mfizz)
("Java/l" #xf12b font-mfizz) ("\\`Java/l\\'" #xf12b font-mfizz)
("C?Perl" #xf148 font-mfizz) ("\\`C?Perl\\'" #xf148 font-mfizz)
("Octave" "octave" xpm) ("\\`Octave\\'" "octave" xpm)
("AHK" "autohotkey" xpm) ("\\`AHK\\'" "autohotkey" xpm)
("Info" #xf05a FontAwesome) ("\\`Info\\'" #xf05a FontAwesome)
("Narrow" #xf066 FontAwesome) ("\\` Narrow\\'" #xf066 FontAwesome)
(read-only #xf023 FontAwesome) (read-only #xf023 FontAwesome)
(writable #xf09c FontAwesome) (writable #xf09c FontAwesome)
(save #xf0c7 FontAwesome) (save #xf0c7 FontAwesome)