aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-07-05 17:11:21 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-07-06 17:08:27 +0200
commit534644d2bd6a0a14b89d7bdacc41d305fcf265b6 (patch)
treead6ebf3e9ac2f3b57df42e419bb847070e2acfb2 /lisp/mastodon.el
parent7b4d77b86bb88377ca75938d2f1b88b839e96a02 (diff)
toot: default to emoji.el, emojify customize
mastodon-use-emojify customize
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index d0dddee..73a8665 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -144,6 +144,11 @@ The default value \"%F %T\" prints ISO8601-style YYYY-mm-dd HH:MM:SS.
Use. e.g. \"%c\" for your locale's date and time format."
:type 'string)
+(defcustom mastodon-use-emojify nil
+ "Whether to use emojify.el to display emojis.
+From version 28, Emacs can display emojis natively. But
+currently, it doesn't seem to have a way to handle custom emoji,
+while emojify,el has this feature and mastodon.el implements it.")
(defun mastodon-kill-window ()
"Quit window and delete helper."
@@ -464,7 +469,8 @@ Calls `mastodon-tl--get-buffer-type', which see."
(defun mastodon-mode-hook-fun ()
"Function to add to `mastodon-mode-hook'."
- (when (require 'emojify nil :noerror)
+ (when (and mastodon-use-emojify
+ (require 'emojify nil :noerror))
(emojify-mode t)
(when mastodon-toot--enable-custom-instance-emoji
(mastodon-toot--enable-custom-emoji)))