Created
June 12, 2018 20:05
-
-
Save sjl/91ee2873ea2d8d6513eb6b4940ffc589 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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