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 greatly 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With