Skip to content

Instantly share code, notes, and snippets.

@Lukewh
Created February 27, 2020 10:17
Show Gist options
  • Save Lukewh/6e7d9ffb61fafde7808c74007b025fe7 to your computer and use it in GitHub Desktop.
Save Lukewh/6e7d9ffb61fafde7808c74007b025fe7 to your computer and use it in GitHub Desktop.
Simple script to name a term on open
(defun named-term (name)
(interactive "sName: ")
(command-execute 'term)
(if (not (string= 'name ""))
(rename-buffer name)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment