diff options
author | mousebot <mousebot@riseup.net> | 2021-06-03 10:02:57 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-06-03 22:44:47 +0200 |
commit | 9f532060927265717b7c71f5b77f6c650e72a34d (patch) | |
tree | 6b7f05ff4533e61953d8ea0fcbb9073a09c49d53 /lisp/mastodon.el | |
parent | db26f1b4bc8a62e472ed7c7191a67ddbc2c65c69 (diff) |
enable async stream for user notifications.
creates a notifications filter for the 'user' stream, then handles display of notifications, which have their own timeline funs.
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 6096c55..4d0b940 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -72,6 +72,7 @@ (autoload 'mastodon-async--stream-federated "mastodon-async") (autoload 'mastodon-async--stream-local "mastodon-async") (autoload 'mastodon-async--stream-home "mastodon-async") +(autoload 'mastodon-async--stream-notifications "mastodon-async") (defgroup mastodon nil "Interface with Mastodon." @@ -139,6 +140,10 @@ Use. e.g. \"%c\" for your locale's date and time format." (define-key map (kbd "i") #'mastodon-toot--pin-toot-toggle) (define-key map (kbd "v") #'mastodon-profile--view-favourites) (define-key map (kbd "R") #'mastodon-profile--view-follow-requests) + (define-key map (kbd "C-c h") #'mastodon-async--stream-home) + (define-key map (kbd "C-c f") #'mastodon-async--stream-federated) + (define-key map (kbd "C-c l") #'mastodon-async--stream-local) + (define-key map (kbd "C-c n") #'mastodon-async--stream-notifications) map) "Keymap for `mastodon-mode'.") |