tags:

views:

74

answers:

1

Hi!

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?

+2  A: 

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.

Trey Jackson