aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAbhiseck Paira <abhiseckpaira@disroot.org>2022-01-13 16:03:11 +0530
committerAbhiseck Paira <abhiseckpaira@disroot.org>2022-01-13 16:03:11 +0530
commit20db4e11f54e324af9e7e6c8f96a75589445629b (patch)
tree10e1d51b6cd91f9da8468f23786a6bd9611be70a /lisp
parenta6e43f8b4956e970b72f52e3a137e9a5cd43f2ed (diff)
mastodon.el: introduce new defcustom `mastodon-active-user'
Use `mastodon-active-user' and `mastodon-instance-url' to determine which mastodon account the user wants to be active for the current session of Emacs. See the documentation string of this variable for details on how to use it. This new variable becomes necessary to prevent conflict when a user has two accounts on the same instance, that is same value of `mastodon-instance-url'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index f65a86d..c7fcccf 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -95,6 +95,19 @@
(defcustom mastodon-instance-url "https://mastodon.social"
"Base URL for the Masto instance from which you toot."
+(defcustom mastodon-active-user "user"
+ "Username of the active user.
+
+For example, if your mastodon username is
+\"example_user@social.instance.org\", and you want this account
+to be active, the value of this variable should be
+\"example_user\".
+
+Also for completeness, the value of `mastodon-instance-url'
+should be \"https://social.instance.org\".
+
+After setting these variables you should restart Emacs for these
+changes to take effect."
:group 'mastodon
:type 'string)