Andros Fenollosa a7344713c6 Fix lexical-binding directive format
The lexical-binding directive needs to end with '-*-' to be properly
recognized by Emacs byte compiler. This fixes compilation warnings.

Version bumped to 1.0.1
2025-12-18 08:54:47 +01:00
2024-01-13 11:58:27 +01:00
2024-01-13 09:11:15 +01:00
2024-01-13 11:51:44 +01:00
2024-01-14 22:17:56 +01:00

Move the scroll in Emacs without moving the position cursor.

scroll-page-without-moving-point.el

demo

Install

You will need to have straight installed.

Add in your init.el.

(use-package scroll-page-without-moving-point
  :straight (:host github :repo "tanrax/scroll-page-without-moving-point.el" :files ("scroll-page-without-moving-point.el"))
  :ensure t)

Configure

Set the keys you want to use. For example:

Key Description
M-n Scroll down
M-p Scroll up

You can set it in your init.el:

(global-set-key "\M-n" 'scroll-page-without-moving-point-down)
(global-set-key "\M-p" 'scroll-page-without-moving-point-up)
Languages
Emacs Lisp 100%