commit f004f75388d41c27d38d2fbf14e2c75918983771
parent ec8100689a59488d2dd3202171afa7ed36fe717b
Author: Iqbal Ansari <iqbal.ansari@ignitesol.com>
Date: Fri, 23 Oct 2015 17:24:24 +0530
If major-mode is not derived from prog-mode, display emoji
unconditionally :rocket:
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/emojify.el b/emojify.el
@@ -18,7 +18,8 @@ Regexp match data 0 points to the chars."
(syntax-ppss-at-point (syntax-ppss))
(emoji-text (substring (match-string 0) 1 -1))
match)
- (if (or (nth 3 syntax-ppss-at-point)
+ (if (or (not (derived-mode-p 'prog-mode))
+ (nth 3 syntax-ppss-at-point)
(nth 4 syntax-ppss-at-point))
(let ((emoji-one (gethash emoji-text emoji-parsed)))
(when emoji-one