Created
January 13, 2024 18:02
-
-
Save rytswd/c5093c5a349962e633d3e1818ec24801 to your computer and use it in GitHub Desktop.
Emacs: Focus multi-vterm
This file contains hidden or 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 rytswd/multi-vterm-focus () | |
"When vterm is active, focus that window. If no vterm is running, start one." | |
(interactive) | |
(unless (get-buffer (multi-vterm-project-get-buffer-name)) | |
(multi-vterm-project)) | |
(switch-to-buffer-other-window (multi-vterm-project-get-buffer-name)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment