Created
February 27, 2020 10:17
-
-
Save Lukewh/6e7d9ffb61fafde7808c74007b025fe7 to your computer and use it in GitHub Desktop.
Simple script to name a term on open
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 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