From f965cc1f17854439b9e6ec11fb10391ae45a6942 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sun, 8 Oct 2023 08:39:48 +0200 Subject: add settings check to mode-hook-fun, fix when check for hl-current --- lisp/mastodon.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lisp/mastodon.el') diff --git a/lisp/mastodon.el b/lisp/mastodon.el index ce3cbf2..31cc0ea 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -425,16 +425,14 @@ Calls `mastodon-tl--get-buffer-type', which see." (when (require 'emojify nil :noerror) (emojify-mode t) (when mastodon-toot--enable-custom-instance-emoji - (mastodon-toot--enable-custom-emoji)) - (when mastodon-tl--highlight-current-toot - (cursor-face-highlight-mode)))) ; 29.1 + (mastodon-toot--enable-custom-emoji))) + (mastodon-profile--fetch-server-account-settings) + (when mastodon-tl--highlight-current-toot + (cursor-face-highlight-mode))) ; 29.1 ;;;###autoload (add-hook 'mastodon-mode-hook #'mastodon-mode-hook-fun) -;;;###autoload -(add-hook 'mastodon-mode-hook #'mastodon-profile--fetch-server-account-settings) - (define-derived-mode mastodon-mode special-mode "Mastodon" "Major mode for Mastodon, the federated microblogging network." (read-only-mode 1)) -- cgit v1.2.3