aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-07-19 09:59:49 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-07-19 09:59:49 +0200
commit8c4f18cca757f639aa9c19fc03a92b94c22b9d07 (patch)
treed8f9e195450ccf80f8dabdc52ddf16266e345bfa
parentdb227a8c2572f9985370325eca9f47d697531697 (diff)
toot--insert-emoji: defalis -> defun.
the alias is only set on loading, when mastodon-use-emojify may not be set yet. so we defun it which means it'll check the var whenever it is run.
-rw-r--r--lisp/mastodon-toot.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 4b1e225..f07e461 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -762,11 +762,12 @@ TEXT-ONLY means don't check for attachments or polls."
;;; EMOJIS
-(defalias 'mastodon-toot--insert-emoji
+(defun mastodon-toot--insert-emoji ()
+ "Prompt to insert an emoji."
+ (interactive)
(if mastodon-use-emojify
- #'emojify-insert-emoji
- #'emoji-search)
- "Prompt to insert an emoji.")
+ (emojify-insert-emoji)
+ (emoji-search)))
(defun mastodon-toot--emoji-dir ()
"Return the file path for the mastodon custom emojis directory."