Emacs: scroll buffer not point

后端 未结 5 1064
心在旅途
心在旅途 2020-12-28 16:53

Is it possible to scroll the entire visible portion of the buffer in Emacs, but leave point where it is. Example: point is towards the bottom of the window and I want to see

5条回答
  •  粉色の甜心
    2020-12-28 17:30

    This might be of use. According to the EmacsWiki page on Scrolling;

    The variable scroll-preserve-screen-position may be useful to some. When you scroll down, and up again, point should end up at the same position you started out with. The value can be toggled by the built in mode M-x scroll-lock-mode.

提交回复
热议问题