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).
- Fundamental mode icon (from Font Awesome).
- Dockerfile mode icon.
- Javascript-IDE mode (js2-mode) icon.
### Changed

View file

@ -233,6 +233,7 @@ This was stole/modified from `c-save-buffer-state'"
("\\`Messages\\'" #xf044 FontAwesome)
("\\`Conf" #xf1de FontAwesome)
("\\`Fundamental\\'" #xf016 FontAwesome)
("\\`Javascript-IDE\\'" "js" xpm)
;; Diminished modes
("\\` \\(?: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
,(or (ignore-errors
(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))))
"!")
(and (not (or nice-file-p (member (file-locked-p bfn) '(nil t))))