aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authorAlexander Griffith <griffitaj@gmail.com>2018-03-16 04:00:28 -0400
committerJohnson Denen <johnson.denen@gmail.com>2018-08-10 22:20:04 -0400
commit2346da19a129b27f2dc68677522475f145adde50 (patch)
treeaea1b52d2e666259f8f5d377193aa4de840f0ea3 /lisp/mastodon.el
parentc9fc274a0e30e0193698dd9b6afcc69f2fa37a0a (diff)
Add user profiles closes #165 (#186)
* Add user profiles - added keybinding U for opening user profiles - (also added vimish keybindings 'h' and 'l' as aliased for tab and stab in mastodon-mode to compliment jk nav) - autoloads 'mastodon-profile--get-next-author
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index 8bf227c..1b040a9 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -48,6 +48,7 @@
(autoload 'mastodon-toot--reply "mastodon-toot")
(autoload 'mastodon-toot--toggle-boost "mastodon-toot")
(autoload 'mastodon-toot--toggle-favourite "mastodon-toot")
+(autoload 'mastodon-profile--get-next-author "mastodon-profile")
(autoload 'mastodon-notifications--get "mastodon-notifications")
(defgroup mastodon nil
@@ -74,12 +75,15 @@ Use. e.g. \"%c\" for your locale's date and time format."
;; Navigation
(define-key map (kbd "j") #'mastodon-tl--goto-next-toot)
(define-key map (kbd "k") #'mastodon-tl--goto-prev-toot)
+ (define-key map (kbd "h") #'mastodon-tl--next-tab-item)
+ (define-key map (kbd "l") #'mastodon-tl--previous-tab-item)
(define-key map [?\t] #'mastodon-tl--next-tab-item)
(define-key map [backtab] #'mastodon-tl--previous-tab-item)
(define-key map [?\S-\t] #'mastodon-tl--previous-tab-item)
(define-key map [?\M-\t] #'mastodon-tl--previous-tab-item)
;; Navigating to other buffers:
(define-key map (kbd "N") #'mastodon-notifications--get)
+ (define-key map (kbd "U") #'mastodon-profile--get-toot-author)
(define-key map (kbd "F") #'mastodon-tl--get-federated-timeline)
(define-key map (kbd "H") #'mastodon-tl--get-home-timeline)
(define-key map (kbd "L") #'mastodon-tl--get-local-timeline)