emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

commit f34b590cea287b43b47f3337390082c30bfee23d
parent 790eaf7b86a5b0033a3a5844415d41d8a35e5108
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sun,  1 Nov 2015 13:27:22 +0530

Redisplay emojis on changing preferred style

Diffstat:
Memojify.el | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/emojify.el b/emojify.el @@ -179,7 +179,17 @@ VALUE is the value to be used as preferred style, see `emojify-preferred-style'" value '(all github ascii))) (setq-default emojify-preferred-style style) - (emojify-set-emoji-data))) + + ;; Update emoji data + (emojify-set-emoji-data) + + ;; If possible resize emojis + (when (fboundp 'emojify-redisplay-emojis) + (seq-each (lambda (buffer) + (with-current-buffer buffer + (when emojify-mode + (emojify-redisplay-emojis)))) + (buffer-list))))) (defcustom emojify-preferred-style 'all