Files
Andros Fenollosa ce5e973ddc Update README.md
2024-01-14 22:17:56 +01:00

33 lines
712 B
Markdown

# Move the scroll in Emacs without moving the position cursor.
## scroll-page-without-moving-point.el
![demo](demo.gif)
## Install
You will need to have straight installed.
Add in your `init.el`.
```elisp
(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`:
```elisp
(global-set-key "\M-n" 'scroll-page-without-moving-point-down)
(global-set-key "\M-p" 'scroll-page-without-moving-point-up)
```