From 20db4e11f54e324af9e7e6c8f96a75589445629b Mon Sep 17 00:00:00 2001 From: Abhiseck Paira Date: Thu, 13 Jan 2022 16:03:11 +0530 Subject: 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'. --- lisp/mastodon.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lisp') 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) -- cgit v1.2.3