mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-12-25 06:08:05 +01:00
Make #48 more general
This commit is contained in:
parent
867ba93a9e
commit
d6df901acc
1 changed files with 3 additions and 1 deletions
|
@ -1137,7 +1137,9 @@ ACTIVE is a flag for if the current window is active."
|
|||
(unless emojify-emojis
|
||||
(emojify-set-emoji-data))
|
||||
(let* ((emoji (ht-get emojify-emojis (nth 1 icon-spec)))
|
||||
(image-file (expand-file-name (ht-get emoji "image") (emojify-image-dir)))
|
||||
(image-file (expand-file-name (ht-get emoji "image") (if (fboundp 'emojify-image-dir)
|
||||
(emojify-image-dir)
|
||||
emojify-image-dir)))
|
||||
(image-type (intern (upcase (file-name-extension image-file)))))
|
||||
(if (not (file-exists-p image-file))
|
||||
(propertize (format "%s" mode)
|
||||
|
|
Loading…
Reference in a new issue