aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-12 16:36:47 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-12 16:36:47 +0200
commitfa704169dfb18f080f4fbc25eb440dbf28ae2f2b (patch)
treeeb2f2ea61e24724bd6317e020ce772acd418aec7 /lisp/mastodon.el
parent5073a82d39914e1b753005520219ab949cd13f97 (diff)
parent0b65ec90bd829530fe8bef843f873c3ecc6c0721 (diff)
Merge branch 'develop'
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index 4578e13..72043cf 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -33,8 +33,10 @@
;;; Code:
(require 'cl-lib) ; for `cl-some' call in mastodon
+(eval-when-compile (require 'subr-x))
(require 'mastodon-http)
(require 'mastodon-toot)
+(require 'url)
(declare-function discover-add-context-menu "discover")
(declare-function emojify-mode "emojify")
@@ -94,6 +96,7 @@
(when (require 'lingva nil :no-error)
(autoload 'mastodon-toot--translate-toot-text "mastodon-toot"))
(autoload 'mastodon-search--trending-tags "mastodon-search")
+(autoload 'mastodon-profile-fetch-server-account-settings "mastodon-profile")
(defgroup mastodon nil
"Interface with Mastodon."
@@ -326,6 +329,9 @@ not, just browse the URL in the normal fashion."
(when mastodon-toot--enable-custom-instance-emoji
(mastodon-toot--enable-custom-emoji)))))
+;;;###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."
:group 'mastodon