Move the buffer contents and cursor up or down by one line
(global-set-key (kbd "M-p") (kbd "C-u 1 C-v")) (global-set-key (kbd "M-n") (kbd "C-u 1 M-v"))
Move the buffer contents and cursor up or down by one line
(global-set-key (kbd "M-p") (kbd "C-u 1 C-v")) (global-set-key (kbd "M-n") (kbd "C-u 1 M-v"))
Very cool.
Not quite as convenient as a single key binding, but you can do this in a slightly easier way than the sequence used here:
– M-1 M-v
– C-1 C-v
Even with your key binding this might occasional be useful to scroll more than one line, e.g. M-5 M-v works just as well.
Definitely! Thank you Greg.