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