I am using emacs + magit + ediff to view a commit. I can scroll both of my windows vertically in sync with v and V but each key press causes the windows to scroll by 10 lines or so. Is there a way to configure ediff to scroll one line at a time? Thanks. #emacs #magit #ediff
@anip Maybe rebind v & V to (scroll-up-command 1) & (scroll-down-command 1) locally in the ediff-related buffer(s)?
@mosu Thank you so much for the suggestion. I will look into it. I have been a vim user for a long time and want to know more about emacs. So all this is new to me. #vim #emacs #magit #ediff
@anip The two functions are mentioned are the ones usually bound to C-v & M-v (page down/up respectively). However, as their documentation shows you can add an argument: the actual number of lines to scroll. In the case of "one line" there's actually something more fitting: the functions scroll-up-line & scroll-down-line which don't require an argument as their default is to scroll by a single line only.
@mosu Are you referring to the magit or ediff documentation? Thanks.
@anip All the functions I've mentioned are basic Emacs functions (see e.g. C-h f scroll-up-line). Nothing specific to magit or ediff yet.
@mosu I am using spacemacs with evil. It turns out that pressing C-e or C-y in EDIFF control panel scrolls the two split windows above one line at a time. So problem solved ;-) Thanks again for helping! #ediff #spacemacs #emacs #evil