diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-04-14 09:27:42 -0400 |
---|---|---|
committer | Johnson Denen <johnson.denen@gmail.com> | 2017-04-14 13:18:14 -0400 |
commit | cb8502f9ee8c3c393ba44613519bd5490ecf9775 (patch) | |
tree | 69c63daa59fab34b5e8af79dcc2ba579fe09d395 /lisp/mastodon.el | |
parent | f42d5e2666022c891f8561c24489bc52e9f4f642 (diff) |
Retrieve home timeline with `mastodon' function
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 07f9f6c..eb5718c 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -30,6 +30,8 @@ ;;; Code: +(require 'mastodon-auth) + (defgroup mastodon nil "Interface with Mastodon." :prefix "mastodon-" @@ -56,11 +58,17 @@ (concat "mastodon.el v" (buffer-string))))) ;;;###autoload +(defun mastodon () + (interactive) + (require 'mastodon-tl) + (mastodon-tl--get "home")) + +;;;###autoload (defun mastodon-toot () "Update a Mastodon instance with new toot. Content is captured in a new buffer." (interactive) + (require 'mastodon-toot) (progn - (require 'mastodon-toot) (switch-to-buffer-other-window (get-buffer-create "*new toot*")) (mastodon-toot-mode t))) @@ -69,7 +77,6 @@ "Registers mastodon.el with the Mastodon instance." (interactive) (progn - (require 'mastodon-auth) (mastodon--store-client-id-and-secret))) (provide 'mastodon) |