Skip to content

Instantly share code, notes, and snippets.

@rytswd
Created January 13, 2024 18:02
Show Gist options
  • Save rytswd/c5093c5a349962e633d3e1818ec24801 to your computer and use it in GitHub Desktop.
Save rytswd/c5093c5a349962e633d3e1818ec24801 to your computer and use it in GitHub Desktop.
Emacs: Focus multi-vterm
(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