aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-05-27 13:50:00 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-05-27 13:50:00 +0200
commite108dcf583c0f2cb20a8bcfbfca18fd15c124b5f (patch)
tree4bcffe16092e56ff7eb5f194ff15bac0450a1af4 /lisp/mastodon-tl.el
parent2ca303daac75f8987aea849145994c7fbec00560 (diff)
add remote-local-domains customize.
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el14
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 47eafef..db923a4 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -212,6 +212,10 @@ If nil, mastodon.el will instead call `shr-browse-image', which
respects the user's `browse-url' settings."
:type '(boolean))
+(defcustom mastodon-tl--remote-local-domains nil
+ "A list of domains to view the local timelines of using `mastodon-tl--get-remote-local-timeline'."
+ :type '(repeat string))
+
;;; VARIABLES
@@ -464,9 +468,15 @@ With a single prefix ARG, hide replies."
(when (eq arg 4) t)))
(defun mastodon-tl--get-remote-local-timeline ()
- "Prompt for an instance domain and try to display its local timeline."
+ "Prompt for an instance domain and try to display its local timeline.
+You can enter any working instance domain. Domains that you want
+to regularly load can be stored in
+`mastodon-tl--remote-local-domains' for easy access with completion.
+Note that some instances do not make their local timelines public, in
+which case this will not work."
(interactive)
- (let* ((domain (read-string "Domain for remote local tl: "))
+ (let* ((domain (completing-read "Domain for remote local tl: "
+ mastodon-tl--remote-local-domains))
(params `(("limit" . ,mastodon-tl--timeline-posts-count)
("local" . "true")))
(buf (concat "remote-local-" domain))