Add js2-mode icon

This commit is contained in:
Tom Willemse 2016-03-30 01:50:24 +02:00
parent 894800248d
commit b475cfb179
2 changed files with 3 additions and 1 deletions

View file

@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Conf mode icon (from Font Awesome). - Conf mode icon (from Font Awesome).
- Fundamental mode icon (from Font Awesome). - Fundamental mode icon (from Font Awesome).
- Dockerfile mode icon. - Dockerfile mode icon.
- Javascript-IDE mode (js2-mode) icon.
### Changed ### Changed

View file

@ -233,6 +233,7 @@ This was stole/modified from `c-save-buffer-state'"
("\\`Messages\\'" #xf044 FontAwesome) ("\\`Messages\\'" #xf044 FontAwesome)
("\\`Conf" #xf1de FontAwesome) ("\\`Conf" #xf1de FontAwesome)
("\\`Fundamental\\'" #xf016 FontAwesome) ("\\`Fundamental\\'" #xf016 FontAwesome)
("\\`Javascript-IDE\\'" "js" xpm)
;; 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)
) )
@ -614,7 +615,7 @@ ICON-SPEC should be a specification from `mode-icons'."
(eval `(propertize (eval `(propertize
,(or (ignore-errors ,(or (ignore-errors
(let* ((bfn (buffer-file-name)) (let* ((bfn (buffer-file-name))
(nice-file-p (and (file-remote-p bfn))) (nice-file-p (and (file-remote-p bfn)))
(mod (or (and (not (or nice-file-p (verify-visited-file-modtime (current-buffer)))) (mod (or (and (not (or nice-file-p (verify-visited-file-modtime (current-buffer))))
"!") "!")
(and (not (or nice-file-p (member (file-locked-p bfn) '(nil t)))) (and (not (or nice-file-p (member (file-locked-p bfn) '(nil t))))