diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-05-27 13:50:00 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-05-27 13:50:00 +0200 |
commit | e108dcf583c0f2cb20a8bcfbfca18fd15c124b5f (patch) | |
tree | 4bcffe16092e56ff7eb5f194ff15bac0450a1af4 /lisp/mastodon-tl.el | |
parent | 2ca303daac75f8987aea849145994c7fbec00560 (diff) |
add remote-local-domains customize.
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 14 |
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)) |