I am trying to create a command which will allow to move other window up/down depending on keybinding I assigned to it:
So what I added to my .emacs:
(defun scroll-down-one-line ()
(scroll-other-window 1))
(global-set-key "\C-\M-v" 'scroll-down-one-line)
And it doesn't work :( Says wrong type of argument Can you suggest a way to fix it?
Similar to this question .
(defun scroll-down-one-line ()
(interactive)
(scroll-other-window 1))
(global-set-key (kbd "C-M-v") 'scroll-down-one-line)
Specifically, you need the 'interactive
special form.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.