mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-12-26 06:28:04 +01:00
Make sure text is supported
This commit is contained in:
parent
c7a0a4320d
commit
72736b5a92
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ the icon."
|
|||
(defun mode-icons-supported-p (icon-spec)
|
||||
"Determine if ICON-SPEC is suppored on your system."
|
||||
(or
|
||||
(and (or (eq (nth 2 icon-spec) nil) (eq (nth 1 icon-spec) nil)) t)
|
||||
(and (eq (nth 2 icon-spec) 'octicons) mode-icons-octicons-font (not (eq system-type 'windows-nt))
|
||||
(stringp (nth 1 icon-spec)))
|
||||
(and (eq (nth 2 icon-spec) 'jpg) (image-type-available-p 'jpeg))
|
||||
|
|
Loading…
Reference in a new issue