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

Is there a package for moving screen instead of cursor?

I am using emacs for a few months now and it is going ok. I want to know if there is a package out there which can help me move the screen instead of my cursor. For example, if I move one line down(...
1
vote
0answers
84 views

Tabbar scrolling jumps back

I am using tabbar and some settings for smooth scrolling which seem to conflict with each other in a weird way. Here is a minimal init.el file: (package-initialize) (setq mouse-wheel-scroll-amount '(...
1
vote
1answer
714 views

graphical emacs on windows - scrolling slow

I am using emacs 25.1, the "official" minGW build, on Windows 7. Opening a very simple text file, even with emacs -Q, leads to slow scrolling. Hit PgUp/Down and it takes time. This happens when I ...
3
votes
1answer
104 views

How to vertically center when opening a file:line from emacsclient?

Is there a way to center the vertical scroll position when using emacs client to open a file at a position? eg: emacsclient +$NUM:$COL $FILE --no-wait --alternate-editor=emacs Is it possible to ...
5
votes
1answer
218 views

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

Disabling reusage of evil scroll count

If evil-scroll-line-down is not given a count argument, the last count is used. This is not the behaviour of vim, which scrolls one line if no count is specified. How can I get vim behaviour?
3
votes
1answer
583 views

ansi-term scroll problem on fast output

I use a terminal from within Emacs via M-x RET ansi-term RET. The problem is that when I run a program which echoes a lot of output, ansi-term first scrolls with the output (such that the last line of ...
1
vote
1answer
302 views

Disable scroll inertia in Emacs for macOS (Sierra)

The title pretty much sums it up, I'd like to avoid that the scroll continues when I release the touchpad. Here's my custom variable about the mouse wheel behaviour: '(mouse-wheel-scroll-amount '(1 ((...
1
vote
1answer
142 views

on Mac, scroll-down or scroll-up don't move point to very top/bottom

I'm fairly new to the Mac, and I've started using Emacs. I've noticed that the scroll-down command, bound to Meta-v, works okay to scroll the visible portion of the buffer, except that it doesn't move ...
5
votes
3answers
3k views

How can I scroll a half page on C-v and M-v?

I use Spacemacs, and for some time I've rebound C-v and M-v to spacemacs/scroll-half-page-down and spacemacs/scroll-half-page-up, respectively, to aid my understanding of the buffer as I move through ...
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
0answers
2k views

mouse-wheel-follow-mouse for horizontal scrolling?

I like having mouse-wheel-follow-mouse set to non-nil, so I can use the trackpad to scroll an inactive window. Unfortunately, it doesn't apply to horizontal scrolling, so if I try to scroll an ...
2
votes
2answers
243 views

Temporarily disable scrolling

Is there a way to temporarily disable scrolling in an emacs buffer? I would like to "lock" a particular line to be (say) the top of the displayed portion of the buffer, so that if I accidentally try ...
3
votes
1answer
69 views

Can buffer boundaries be displayed at the top and bottom of windows?

I know that Emacs can display the buffer boundaries in the fringe, by displaying angles at the boundaries, and arrows where the buffer can be scrolled. Is there some way to display these boundaries, ...
5
votes
1answer
146 views

How to get `window-end` when the window scrolls?

From the doc of window-end function: Even if update is non-nil, window-end does not attempt to scroll the display if point has moved off the screen, the way real redisplay would do. It does not ...
3
votes
0answers
373 views

Scrolling in tmux in emacs

I'm using emacs to run ansi-term with an ssh'ed tmux inside. I can scroll using my prefix C-b + [ as per this thread, but I would like to be able to scroll with the mouse immediately. This seems to ...
0
votes
0answers
26 views

Adjust scrolling after font increase/decrease

After text-scale-decrease or text-scale-increase scrolling (e.g. with space, scroll-down) does not seem to take the text scaling into account. Is there a way to adjust the scroll commands to reflect ...
3
votes
1answer
839 views

How to recreate iA Writer-style typewriter scrolling in Emacs?

The popular Mac editor iA Writer (https://ia.net/writer/mac/) has many nifty features that I rather like. So far, I've been able to recreate the look and feel for the most part -- except for the ...
3
votes
1answer
134 views

More useful vertical scrolling in emacs

I am trying to compare two log files, side by side in two emacs buffers. The logfiles are similar in context, but some have extra debug inserted. This makes simple use of pgup/pgdown painful as things ...
1
vote
2answers
188 views

Why is my minibuffer scrolling and preventing me from seeing emacs asking me questions?

My new emacs is scrolling minibuffer text so that I can't see simple stuff, like when emacs asks if I want to save changes to a file before exiting. Doing this both in a mac window or in Terminal. ...
4
votes
2answers
1k views

Terminal Emacs not receiving <wheel-up> or <wheel-down>?

From what I understand, I should be able to get mouse scrolling to work in emacs nox mode with the following: (require 'mouse) (xterm-mouse-mode t) (mouse-wheel-mode t) (global-set-key (kbd "<...
2
votes
0answers
88 views

Is it possible to use the mouse wheel for company mode?

I'm using the Cocoa version of Emacs. When company mode presents a list of completions you can use the mouse to select one. It would seem natural to be able to use the mouse wheel to scroll through ...
1
vote
1answer
237 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?
1
vote
0answers
118 views

How can I prevent a setting in init.el from being overridden during startup?

Using emacs-mac-port, and I'm trying to configure horizontal scrolling with the trackpad. The following expressions work if I execute them manually via eval-last-sexp, (global-set-key [wheel-right] (...
3
votes
0answers
914 views

fast moving cursor?

What can I add to my .emacs to make the cursor move more quickly? Specifically, I'm looking for faster rates for (holding arrow-keys and C-arrow keys (ie skipping over whitespace with my current ...
12
votes
1answer
335 views

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?
1
vote
0answers
635 views

scroll-preserve-screen-position causes cursor to move forward one character at screen boundary

I am using (setq scroll-preserve-screen-position t) as suggested at https://superuser.com/a/184421/39697, and it works well, except for me, when I scroll at the top of the screen using scroll-up-line,...
2
votes
2answers
699 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. ...
0
votes
1answer
191 views

How to disable scroll lock when moving point

A strange behaviour happens when I move up or down the point (using the keyboard): Emacs automatically scrolls up or down whenever I pass a certain line threshold. See here: When moving down, at line ...
25
votes
3answers
2k views

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 ...
8
votes
1answer
403 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 ...
5
votes
2answers
860 views

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 ...
3
votes
1answer
174 views

Making scrolling easier to follow when pair programming

When pair programming with emacs I've found it is hard for the person who is not typing ("driving") to follow scrolling. I've seen this both as the "passenger" and the "driver". How can I make ...
4
votes
2answers
473 views

Scrolling during isearch stops searching, losing matches

I use C-s to search for a string. All matches are highlighted. Then I would like to scroll down by C-v, but all matches disappear. I know keeping C-s will move to the next match, but it is too slow. ...
4
votes
2answers
527 views

zs and ze from Vim?

I use evil-mode, but it doesn't support zs and ze shortcuts from Vim (scrolling horizontally to cursor position). How can i map these keys to achieve the same behavior in Emacs? Some explanation of ...
8
votes
1answer
665 views

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 ...
0
votes
1answer
44 views

How to set the y-coordinate (in pixels) of the current line

I want to scroll the buffer so that the the current line is, say, 300 pixels from the beginning of the window. Something like this: . \ . | (300 pixels) . / | <-- (current line) Any ideas? ...
1
vote
2answers
146 views

How disable “unexpected” scrolling behavior in small frames

I find the way that the cursor scrolls in small frames unintuitive. When I press C-p I expect the cursor to move up a line. Instead, in the org-mode file below, right before the cursor gets to the #+...
6
votes
1answer
100 views

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 ...
4
votes
0answers
183 views

How to actually scroll with popup-tip :scroll-bar t?

Following this blog post, I am interested in using popup.el for my own purposes. In the post, he mentions to add a scroll bar with the :scroll-bar argument. If I include the :scroll-bar t option in ...
5
votes
2answers
197 views

How to ensure lines are always displayed in groups of 3?

I am writing a major-mode which displays a list to the user. It is similar to tabulated-list-mode, except each entry takes up 3 lines, as opposed to just one: 0 0 Ctrl-} key in emacs 5m ...
0
votes
1answer
30 views

Scrolling seems to add an unwanted chunk into my kill ring

Anybody know why this may be occurring? Here is an outline of how I recreate the issue... I copy or kill something to my kill ring. I scroll up or down with the mouse. I then yank and get an ...
7
votes
2answers
849 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 ...
23
votes
1answer
6k 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 ...
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 ...

1
2