开发者

Keep Emacs from scrolling past end of buffer

开发者 https://www.devze.com 2023-02-03 18:51 出处:网络
Is there anything I can add to my .emacs file to keep emacs from adding new lines when I scroll past the end of the buffer with my mouse or the scrollbar? I already have

Is there anything I can add to my .emacs file to keep emacs from adding new lines when I scroll past the end of the buffer with my mouse or the scrollbar? I already have

(setq next-line-add-newlines nil)

but that seems to only be applying to when I am moving with the keyboard. I've done quite a few searches on the subject to no avail.

Any tips are g开发者_Go百科reatly appreciated! Thank you.


Check the value of the the variable next-line-add-newlines in the buffers/modes that it's misbehaving. You can do so by: C-h v next-line-add-newlines (or M-x describe-variable).

It could be something in the major/minor mode that's enabling it.


Have you checked whether this also happens in standard emacs (i.e. have you tested this behaviour when running emacs with --no-init-file) ?

If it doesn't, then the cause for this problem has to lie somewhere in your dotfiles.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号