emacs-emojify

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

commit 011c6c4132e46c786bfed8273fb915501cfbfe36
parent 0dea0c0051f42fd7f4edd7b28a524e8f0bd00696
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sat, 28 Nov 2015 23:10:40 +0530

Add hooks for changing emoji backgrounds locally

Diffstat:
Memojify.el | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/emojify.el b/emojify.el @@ -833,8 +833,8 @@ lines ensures that all the possibly affected emojis are redisplayed." (add-hook 'jit-lock-after-change-extend-region-functions #'emojify-after-change-extend-region-function t t) ;; Update emoji backgrounds when region is selected - (add-hook 'activate-mark-hook #'emojify-setup-emoji-update-on-selection-change) - (add-hook 'deactivate-mark-hook #'emojify-teardown-emoji-update-on-selection-change) + (add-hook 'activate-mark-hook #'emojify-setup-emoji-update-on-selection-change t t) + (add-hook 'deactivate-mark-hook #'emojify-teardown-emoji-update-on-selection-change t t) ;; Redisplay visible emojis when emoji style changes (add-hook 'emojify-emoji-style-change-hooks #'emojify-redisplay-emojis-in-region))) @@ -851,8 +851,8 @@ lines ensures that all the possibly affected emojis are redisplayed." (remove-hook 'jit-lock-after-change-extend-region-functions #'emojify-after-change-extend-region-function t) ;; Update emoji backgrounds when region is selected - (remove-hook 'activate-mark-hook #'emojify-setup-emoji-update-on-selection-change) - (remove-hook 'deactivate-mark-hook #'emojify-teardown-emoji-update-on-selection-change) + (remove-hook 'activate-mark-hook #'emojify-setup-emoji-update-on-selection-change t) + (remove-hook 'deactivate-mark-hook #'emojify-teardown-emoji-update-on-selection-change t) ;; Remove style change hooks (remove-hook 'emojify-emoji-style-change-hooks #'emojify-redisplay-emojis-in-region))