aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-02-27 16:39:19 +0100
committermarty hiatt <martianhiatus@riseup.net>2024-02-27 17:07:32 +0100
commit54be3ac2457ca21fbc827c6304009e2461ffacec (patch)
tree2b905c9f9faa4ab4a34aa7429a5cd5879fb8044f /lisp/mastodon-toot.el
parent7b1d7584ff52fb2bbd45d3866bc03f912c741406 (diff)
compose: only try to enable emojify-mode if its bound
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 366a000..1d91578 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -155,7 +155,8 @@ If the original toot visibility is different we use the more restricted one."
:type 'boolean)
(defcustom mastodon-toot--emojify-in-compose-buffer t
- "Whether to enable `emojify' in the compose buffer."
+ "Whether to enable `emojify-mode' in the compose buffer.
+We only attempt to enable it if its bound."
:type 'boolean)
(defcustom mastodon-toot--proportional-fonts-compose nil
@@ -1902,7 +1903,9 @@ EDIT means we are editing an existing toot, not composing a new one."
(setq mastodon-toot-previous-window-config previous-window-config)
(when mastodon-toot--proportional-fonts-compose
(facemenu-set-face 'variable-pitch))
- (when mastodon-toot--emojify-in-compose-buffer
+ (when (and mastodon-toot--emojify-in-compose-buffer
+ ;; emojify loaded but poss not enabled in our buffer:
+ (boundp 'emojify-mode))
(emojify-mode))
(when (and initial-text
(not reply-json))