Questions tagged [scrolling]

is for commands to move text up and down and sideways in a window. Scrolling forward moves the buffer text upwards and scrolling backward moves downwards. Horizontal scrolling moves the buffer text left or right. Emacs provides many functions, key bindings, and programming facilities for scrolling.

Useful Links:

119 questions
29
votes
1 answer

Synchronized scrolling in two windows

Is there a way to reflect the navigation commands in the current window in another visible window. I have two related LaTeX files displayed in two windows and would like to scroll through them simultaneously to get an overview of the differences. I…
Vamsi
  • 3,916
  • 22
  • 35
29
votes
4 answers

Smooth (mouse) scroll for inline images?

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…
Leo Ufimtsev
  • 4,488
  • 3
  • 22
  • 45
25
votes
3 answers

Let Emacs move the cursor off-screen

This question was originally asked at https://stackoverflow.com/questions/15895313/let-emacs-move-the-cursor-off-screen, but all the answers I got more or less said "it can't be done", which with emacs I just don't accept. Is it possible to let…
asmeurer
  • 1,552
  • 12
  • 30
13
votes
1 answer

Why doesn't M-v following C-v move cursor back to the original position?

M-v following C-v doesn't move the cursor back to the original position. Why is that? Can we make it happen?
Tim
  • 4,987
  • 7
  • 31
  • 60
10
votes
2 answers

Different scroll margins at top and bottom of window?

Q: is there a way to set different scroll margins at the top and bottom of a window? The variable scroll-margin (defined in the C source code) sets how many lines of text that Emacs displays, at a minimum, at the top and bottom of a window: Number…
Dan
  • 32,584
  • 6
  • 98
  • 168
9
votes
4 answers

How to autoscroll a window to always show the end of a growing buffer?

Context: I have a window that shows the output of a shell command. As new lines are added, I'd like the window to always show the most recent lines. Example: (let ((temp-window (or (get-buffer-window "*test*") …
tmalsburg
  • 2,540
  • 1
  • 14
  • 29
8
votes
2 answers

Hook that indicates when the cursor has been moved by scrolling

Inspired by this question: Let Emacs move the cursor off-screen, I am considering writing a minor mode that will keep the cursor in a fixed position that is not affected by scrolling operations. I have some ideas of how I might implement this, but…
nispio
  • 8,175
  • 2
  • 35
  • 73
8
votes
1 answer

Emacs sometimes starts automatically recentering cursor position

At some unidentifiable point of time (can be in a few days, can be in a few hours) something clicks in Emacs and it starts automatically recentering my cursor position. Like I move my cursor somewhere and in a few seconds the buffer is shifted so…
7
votes
2 answers

Smooth scrolling by pixel-lines

With GNU Emacs 26.1 installing either smooth scroll while adding (require 'smooth-scroll) (smooth-scroll-mode t) to my .emacs, or smooth scrolling with (require 'smooth-scrolling) (smooth-scrolling-mode 1) does turn on the smooth scrolling mode…
Calaf
  • 483
  • 3
  • 16
7
votes
3 answers

How to center the current line vertically during Isearch

During search and especially search-and-replace it would be nice to have the surrounding lines as context. But when jumping to the next hit, the cursor sometimes ends at the lowest visible line (or even worse at a corner). I would like the text to…
Beginner
  • 2,661
  • 3
  • 17
  • 25
6
votes
1 answer

can scrolling be smoother than single line in emacs/org-mode?

Using the trackpad, the scrolling in emacs/spacemacs is notably less smooth than in modern browsers and other editors. I have to confess that this jerkiness irks me more than I would prefer but I have not found a way to improve that situation. It is…
Willy Tanner
  • 111
  • 4
6
votes
1 answer

How to preserve the visual height of the cursor after an operation?

Q: How do I find the visual line number of point (so that I can restore it after an operation)? By “visual line number”, I'm referring to the number N of lines between the top of the window (or the screen) and the cursor, not the top of the…
Malabarba
  • 22,878
  • 6
  • 78
  • 163
6
votes
1 answer

emulation of scroll-off?

Vim has an option called scrolloff (e.g. set scrolloff=7) which automatically scrolls down or up to keep the cursor/point from getting within a certain distance of the top or bottom of the window. Is there a way to emulate this behavior in vanilla…
Greg Nisbet
  • 857
  • 5
  • 19
6
votes
2 answers

How to scroll while using multiple cursor?

I use a lot multiple cursor and sometimes I have to select some words which are off the screen, in sublime text I do not encounter any problem, I can just scroll and continue selecting words. This, incredibly, seems not possible in emacs! When I…
Nisba
  • 895
  • 8
  • 19
6
votes
2 answers

How to prevent org-mode from repositioning text in the window when cycling visibility?

In org-mode, when I cycle through the visibility of the document via the TAB key (org-cycle), the text sometimes gets repositioned. If there is enough text below the headline such that it will not all fit within the window when it is expanded, Emacs…
1
2 3 4 5 6 7 8