From b475cfb179bb26f5160c7521119594a54b01f20d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 30 Mar 2016 01:50:24 +0200 Subject: [PATCH] Add js2-mode icon --- CHANGELOG.md | 1 + mode-icons.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3103dd..73216fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/mode-icons.el b/mode-icons.el index ff0cf9e..f25ee7b 100644 --- a/mode-icons.el +++ b/mode-icons.el @@ -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))))