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.

Filter by
Sorted by
Tagged with
24
votes
3answers
2k views

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 ...
8
votes
1answer
394 views

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 ...
22
votes
1answer
5k views

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 ...
7
votes
2answers
781 views

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 ...
1
vote
1answer
97 views

In-sync editing the same file in two frames

For a lecture, I'll have a setup with two frames (one on my notebooks's screen, the other on the projector) showing the same file. When editing the file in the "master" frame I need the "slave" frame ...
5
votes
1answer
1k views

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 ...
1
vote
1answer
152 views

How to scroll using mouse while keeping cursor on same line/position?

I am using this minor mode to scroll and keep cursor on same line, mwheel-scroll however screws up the smooth scroll since it moves the cursor to a different line, scrolling return the cursor back to ...
2
votes
1answer
127 views

Using ggtags tag lookup along with centered-cursor-mode

I am using centered-cursor-mode to center the cursor at 10 lines above center at all times. I am trying to have ggtags respects this setup after each tag lookup. When I have the cursor at any point ...
2
votes
0answers
55 views

“Negative” scrolling, or: actually recentering first line

Usually, there's some extra "virtual" space shown at the bottom of a buffer, which makes the visual appearance of a file longer than it actually is. This is quite convenient, e.g., if you're trying ...
2
votes
2answers
594 views

How to move point to the end of another buffer, using `with-current-buffer` and `goto-char`?

I'm trying to implement «effective append» for log buffer, e.g. if a point is at point-max position then insert text and move point to new point-max, otherwise append text and preserve point position. ...
1
vote
0answers
2k views

Set scroll-amount for mouse wheel in .emacs

What I've tried in .emacs (note: I don't know elisp, and just tried cobbling this stuff together from googling and from other people's stuff) is (mouse-wheel-mode 't) ;;; mouse-wheel enabled (setq ...
1
vote
1answer
224 views

How to enable circular scroll in emacs helm

How do I wrap around and start from the beginning when I have reached the end of items in a helm buffer?
0
votes
0answers
23 views

mac-mwheel-scroll screws centered-positon-mode when using mouse pad on a macbook laptop

I am able to scroll using navigation buttons and external mouse on a Mac with this code that keeps the cursor at a specific line at all times. I am using this code since it is much faster than ...
0
votes
1answer
144 views

Possible to smooth scroll using pixel and line offsets?

I'm running into an odd problem scrolling by pixels, it seems calling scroll-up doesn't properly handle pixel scrolling (set-window-vscroll). This is a simple test that attempts to scroll up by ...
0
votes
1answer
180 views

After change from Ubuntu to Lubuntu the mouse wheel (scroll) doesn't work without pressing CTRL together

When I try to scroll with mouse I receive a message saying Wrong type argument: commandp, mouse-5 or Wrong type argument: commandp, mouse-4. This happens after I tried a lot of random fixes. Before ...