I'm using the windmove package to move my cursor between windows. In addition, I want to define a function to move twice, e.g. down first and right second. The following function only do the "down" move but not the "right" move. Any suggestions?
(defun windmove-diagonal ()
(interactive)
(windmove-down)
(windmove-right)
)