From d6df901acc6c62c4bcf761d8f23f47c85101ef61 Mon Sep 17 00:00:00 2001 From: Fidler Date: Thu, 12 Jan 2017 10:43:26 -0600 Subject: [PATCH] Make #48 more general --- mode-icons.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mode-icons.el b/mode-icons.el index c8b3de6..a9c635f 100644 --- a/mode-icons.el +++ b/mode-icons.el @@ -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)