Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
676 views
in Technique[技术] by (71.8m points)

scroll - (Ctrl + up/down)-style scrolling in Emacs

I don't mean smooth scrolling, but keeping the cursor at a fixed point, and always moving one 'screenful', one line at a time, as one (in Eclipse or other IDEs) presses ctrl + up/down.

Then when one presses plain up/down, screen jumps if necessary in order to assure cursor's visibility.

Don't know how is it called.

Has it been implemented in Emacs?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

As mentioned, Emacs does not offer this functionality nowadays. It could be implemented, but nobody bothered to do so yet, AFAIK [EDIT: actually, it looks like I mis-rememebered, and Martin did implement such a thing, see https://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01892.html ]. The usual workaround is to place a mark with C-SPC C-SPC and then use C-u C-SPC when you want to return where you were.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...