diff options
-rw-r--r-- | init.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el index c6370a0..6938282 100644 --- a/init.el +++ b/init.el | |||
@@ -605,6 +605,13 @@ like a dumbass." | |||
605 | (minibuffer-electric-default-mode +1) | 605 | (minibuffer-electric-default-mode +1) |
606 | (fset 'yes-or-no-p #'y-or-n-p)) | 606 | (fset 'yes-or-no-p #'y-or-n-p)) |
607 | 607 | ||
608 | (setup page | ||
609 | (defun recenter-to-top (&rest _args) | ||
610 | "Recenter the cursor to the top of the window." | ||
611 | (recenter 0)) | ||
612 | (:advise forward-page :after #'recenter-to-top | ||
613 | backward-page :after #'recenter-to-top)) | ||
614 | |||
608 | (setup prog | 615 | (setup prog |
609 | (:option smie-indent-basic tab-width) | 616 | (:option smie-indent-basic tab-width) |
610 | 617 | ||