diff options
author | Case Duckworth | 2021-09-27 23:08:00 -0500 |
---|---|---|
committer | Case Duckworth | 2021-09-27 23:08:00 -0500 |
commit | 5beb6dc5819587f805fca34a27c1e7241e5bb48f (patch) | |
tree | b569450c4d8327c77eef03d5ccaca278c802abaa | |
parent | Move stuff around (diff) | |
download | emacs-5beb6dc5819587f805fca34a27c1e7241e5bb48f.tar.gz emacs-5beb6dc5819587f805fca34a27c1e7241e5bb48f.zip |
Recenter toots
-rw-r--r-- | init.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/init.el b/init.el index 69dc918..a009333 100644 --- a/init.el +++ b/init.el | |||
@@ -1766,7 +1766,14 @@ browser defined in `browse-url-secondary-browser-function'." | |||
1766 | mastodon-tl--enable-relative-timestamps nil) | 1766 | mastodon-tl--enable-relative-timestamps nil) |
1767 | 1767 | ||
1768 | (:hook #'hl-line-mode | 1768 | (:hook #'hl-line-mode |
1769 | #'reading-mode)) | 1769 | #'reading-mode) |
1770 | |||
1771 | (defun mastodon-goto-toot@recenter () | ||
1772 | "Recenter the current toot." | ||
1773 | (recenter -1)) | ||
1774 | |||
1775 | (:advise mastodon-tl--goto-next-toot :after #'mastodon-goto-toot@recenter | ||
1776 | mastodon-tl--goto-prev-toot :after #'mastodon-goto-toot@recenter)) | ||
1770 | 1777 | ||
1771 | (setup (:straight (modus-themes | 1778 | (setup (:straight (modus-themes |
1772 | :host gitlab | 1779 | :host gitlab |