diff options
author | Alexander Griffith <griffitaj@gmail.com> | 2018-03-05 15:38:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-05 15:38:23 -0500 |
commit | a5d0c22e0cab6771d3fc3e7e7244de32d497c994 (patch) | |
tree | 375f7e544ec0152c38e6dbf6b5307c21cc692141 /lisp/mastodon.el | |
parent | ca4bb2a436f1ba46515b812c97d74333294bae76 (diff) | |
parent | c7e0da711b433ccac1f2791c16047e1eb2ed2c75 (diff) |
Merge pull request #168 from hdurer/tab-browsing
Allow user to navigate interesting things in a buffer via tabbing.
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index c031774..e04babe 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -38,6 +38,8 @@ (autoload 'mastodon-tl--get-tag-timeline "mastodon-tl") (autoload 'mastodon-tl--goto-next-toot "mastodon-tl") (autoload 'mastodon-tl--goto-prev-toot "mastodon-tl") +(autoload 'mastodon-tl--next-tab-item "mastodon-tl") +(autoload 'mastodon-tl--previous-tab-item "mastodon-tl") (autoload 'mastodon-tl--thread "mastodon-tl") (autoload 'mastodon-tl--update "mastodon-tl") (autoload 'mastodon-toot--compose-buffer "mastodon-toot") @@ -131,7 +133,12 @@ If REPLY-TO-ID is non-nil, attach new toot to a conversation." (define-key map (kbd "r") #'mastodon-toot--reply) (define-key map (kbd "t") #'mastodon-tl--thread) (define-key map (kbd "T") #'mastodon-tl--get-tag-timeline) - (define-key map (kbd "u") #'mastodon-tl--update))) + (define-key map (kbd "u") #'mastodon-tl--update) + (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) + )) (with-eval-after-load 'mastodon (when (require 'discover nil :noerror) |