Skip to content

Instantly share code, notes, and snippets.

@sjl sjl/lol.lisp
Created Jun 12, 2018

Embed
What would you like to do?
(defcommand wrapping-move-focus (direction)
((:direction "Enter a direction: "))
(let ((frame (current-frame)))
(move-focus direction)
(when (eql frame (current-frame))
(ecase direction
(:right (gnext) (dotimes (i 10) (move-focus :left)))
(:left (gprev) (dotimes (i 10) (move-focus :left)))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.