mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-12-25 14:18:03 +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).
|
||||
- Fundamental mode icon (from Font Awesome).
|
||||
- Dockerfile mode icon.
|
||||
- Javascript-IDE mode (js2-mode) icon.
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -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))))
|
||||
|
|
Loading…
Reference in a new issue