Created
November 25, 2017 16:21
-
-
Save jmercouris/70cd8754e8a0e3495b4c517dd9be51e2 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
(defun switch-buffer-next () | |
(let ((active-buffer-index (position *active-buffer* *buffers* :test #'equalp))) | |
(if (< (+ active-buffer-index 1) (length *buffers*)) | |
(set-visible-active-buffer (nth (+ active-buffer-index 1) *buffers*)) | |
(set-visible-active-buffer (nth 0 *buffers*))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment