I display images in-line with begin_src & result blocks.
However, for large-images, when I scroll past the bottom of the image, I get a 'jerk' and the whole image is scrolled away. Similarly if I scroll up and run into an image, I get a jerk and see the whole image instead of seeing it incrementally bit by bit.
This makes it hard to work with large plantuml/graphviz diagrams in org-mode.
I would like a smooth scoll experience, to gently scroll past the image like in a web browser, without jerking.
I have tried:
(setq auto-window-vscroll nil)
and also
(setq scroll-margin 1
scroll-conservatively 0
scroll-up-aggressively 0.01
scroll-down-aggressively 0.01)
I tried smooth-scroll package and this snippet also.
However, it seems an in-line image only takes up 'one-line' and fixing emacs to scroll only by 'one-line' doesn't fix the issue.
Any solution to this issue?
[edit] Keyboard vs Mouse scrolling:
Mouse scrolling is implied. But keyboard scrolling would be a bonus if proper mouse scrolling would work.
[edit]
Somewhat of a workaround, but useful for working with images in org-mode was to open them in an external app that auto-reloads on file change.
Example would be eog (eye of gnome)
or shutter
or prievew (on OS X)
. It can be configured via org-file-apps
by adding:
extension: \.png\'
Command: eog "%s"
(setq scroll-conservatively 101)
and comment out all of your other scroll settings mentioned in the question above and disable that smooth scroll package and/or snippet? The doc-string forscroll-conservatively
states: "If the value is greater than 100, redisplay will never recenter point, but will always scroll just enough text to bring point into view, even if you move far away. A value of zero means always recenter point if it moves off screen." – lawlist Mar 27 '15 at 23:33pixel-scroll-mode
is the way to go, if I understand it right? I am not up-to-date with my emacs installation, so I cannot test it myself right now. – Chris May 24 '17 at 12:12