aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-notifications.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-10-04 11:46:56 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-10-04 11:46:56 +0200
commit567b116357143488980e0294caf900624b48468a (patch)
tree914903fc8f707db0a733ce0131fc5e58115d21ed /lisp/mastodon-notifications.el
parentba6e06361655398144b1cbb9005eb4846f0f3d70 (diff)
notifs: don't require mastodon! require subr-x, autoloads
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r--lisp/mastodon-notifications.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index 1a1c4ed..bab2e13 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -30,7 +30,7 @@
;;; Code:
-(require 'mastodon)
+(eval-when-compile (require 'subr-x))
(autoload 'mastodon-http--api "mastodon-http")
(autoload 'mastodon-http--get-params-async-json "mastodon-http")
@@ -52,6 +52,10 @@
(autoload 'mastodon-tl--item-id "mastodon-tl")
(autoload 'mastodon-tl--update "mastodon-tl")
(autoload 'mastodon-views--view-follow-requests "mastodon-views")
+(autoload 'mastodon-tl--current-filters "mastodon-views")
+(autoload 'mastodon-tl--render-text "mastodon-tl")
+(autoload 'mastodon-notifications-get "mastodon")
+
(defgroup mastodon-tl nil
"Nofications in mastodon.el."
@@ -76,6 +80,7 @@ make them unweildy."
(defvar mastodon-tl--buffer-spec)
(defvar mastodon-tl--display-media-p)
+(defvar mastodon-mode-map)
(defvar mastodon-notifications--types-alist
'(("follow" . mastodon-notifications--follow)