aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhiseck Paira <abhiseckpaira@disroot.org>2021-12-28 20:21:49 +0530
committerAbhiseck Paira <abhiseckpaira@disroot.org>2022-01-17 20:50:44 +0530
commite9e09b44cf2e194f317073f7db192e6eb79759e7 (patch)
treeb4b6415c75e3118bf2ec9e747a3f795aebad788f
parentf037340225fecb16ed7bb92c26a56e0a96c8aee6 (diff)
update README
update the README to inform about the new changes.
-rw-r--r--README.org32
1 files changed, 19 insertions, 13 deletions
diff --git a/README.org b/README.org
index 88e8c41..22b2531 100644
--- a/README.org
+++ b/README.org
@@ -75,10 +75,6 @@ This repo also incorporates fixes for two bugs that were never merged into the u
- https://github.com/jdenen/mastodon.el/issues/227 (and https://github.com/jdenen/mastodon.el/issues/234)
- https://github.com/jdenen/mastodon.el/issues/228
-** 2FA
-
-It looks like 2-factor auth was never completed in the original repo. It's not a priority for me, auth ain't my thing. If you want to hack on it, its on the develop branch in the original repo.
-
** contributing
Contributions are welcome. Registration is disabled by default on the gitea instance, but if you are interested, get in touch with me on mastodon:
@@ -147,21 +143,31 @@ Or, with =use-package=:
#+END_SRC
** Usage
-*** 2 Factor Auth
-2FA is not supported yet. It is in the [[https://github.com/jdenen/mastodon.el/milestone/2][plans]] for the =1.0.0= release.
-
-If you have 2FA enabled and try to use mastodon.el, your Emacs client will hang until you `C-g` your way out.
*** Instance
-Set =mastodon-instance-url= in your =.emacs= or =customize=. Defaults to the [[https://mastodon.social][flagship]].
+You need to set 2 variables in your init file to get started:
+
+1. mastodon-instance-url
+2. mastodon-active-user
+
+(see their doc strings for details). For example If you want to post
+toots as "example_user@social.instance.org", then put this in your init
+file:
#+BEGIN_SRC emacs-lisp
- (setq mastodon-instance-url "https://my.instance.url")
+ (setq mastodon-instance-url "https://social.instance.org"
+ mastodon-active-user "example_user")
#+END_SRC
-There is an option to have your user credentials (email address and password) saved to disk so you don't have to re-enter them on every restart.
-The default is not to do this because if not properly configured it would save these unencrypted which is not a good default to have.
-Customize the variable =mastodon-auth-source-file= if you want to enable this feature.
+Then *restart* Emacs and run =M-x mastodon=. Make sure you are connected
+to internet before you do this. If you have multiple mastodon accounts
+you can activate one at a time by changing those two variables and
+restarting Emacs.
+
+If you have been using mastodon.el before this change and the above
+steps do not work it's advisable that you delete the old file specified
+by =mastodon-client--token-file= and restart Emacs and follow the steps
+again.
*** Timelines