2
OlMon / image-popup · GitLab
source link: https://gitlab.com/OlMon/image-popup
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Image-popup
A package the rescale images to line height and display them in a child frame. This prevents the buffer jumps caused by images.
Usage
Call image-popup-mode
to rescale all images in the buffer and enable
hotkeys.
Functions
-
image-popup-display-next-image
- Displays the next image searching from point. [Bound toC-c C-f n
] While a image-popup is open this function can be called witn
. -
image-popup-display-previous-image
- Displays the next image searching from point. [Bound toC-c C-f p
] While a image-popup is open this function can be called witp
. -
image-popup-display-marker-at-point
- Displays the image at point. [Bound toC-c C-f d
] -
image-popup-reload
- Reloads image-popup. This is useful for Eww and Nov’s Epus buffers.
Installation
Straight
The straight way is with the following code:
(use-package image-popup :straight (image-popup :type git :host gitlab :repo "OlMon/image-popup" :branch "master"))
Directly
The direct way is to clone this repo into your load-path and require image-popup
.
Examples
Eww-Setup
(add-hook 'eww-after-render-hook #'image-popup-reload)
Nov-Setup
(add-hook 'nov-post-html-render-hook #'image-popup-reload)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK