mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-11-24 18:40:29 +01:00
Add js2-mode icon
This commit is contained in:
parent
894800248d
commit
b475cfb179
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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))))
|
||||||
|
|
Loading…
Reference in a new issue