How to scroll line by line in GNU Emacs

emacs

To put it simply, I'm trying to get scrolling in emacs like in vim and most other editors; when I'm for example, two lines from the bottom/top, and I press down/up (Ctrlp,n, ,) it goes only one line up or down, not half the screen.

Best Answer

See some of the suggestions on the Emacs Wiki:

(setq scroll-step            1
      scroll-conservatively  10000)