From 9df5610cb76fdc934afe418a07b8886513b6c56f Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 24 Dec 2021 17:35:23 -0500 Subject: feat(wpcarro/emacs): Support wpcarro@wpcarro.dev in ssh.el I'm accustomed to using vim in a GUI terminal to edit remote files. I'm trying to ween-off of this dependency in favor of using Emacs. Change-Id: Ib71d18135a7a9ef6ef61dfce814fffbea79a36f7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4589 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/emacs/.emacs.d/wpc/ssh.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'users/wpcarro/emacs') diff --git a/users/wpcarro/emacs/.emacs.d/wpc/ssh.el b/users/wpcarro/emacs/.emacs.d/wpc/ssh.el index 4e6f8fef75c8..eb7debc492be 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/ssh.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/ssh.el @@ -41,10 +41,8 @@ ;; enables ControlMaster. (setq tramp-use-ssh-controlmaster-options nil) -(defcustom ssh-hosts '("desktop") - "List of hosts to which I commonly connect. -Note: It could be interesting to read these values from ~/.ssh-config, but - that's more than I need at the moment.") +(defcustom ssh-hosts '("wpcarro@wpcarro.dev") + "List of hosts to which I commonly connect.") (defun ssh-sudo-buffer () "Open the current buffer with sudo rights." @@ -58,7 +56,7 @@ Note: It could be interesting to read these values from ~/.ssh-config, but "Prompt for an SSH host and open a dired buffer for wpcarro on that machine." (interactive) (let ((machine (completing-read "Machine: " ssh-hosts))) - (find-file (format "/ssh:wpcarro@%s:~" machine)))) + (find-file (format "/ssh:%s:~" machine)))) (provide 'ssh) ;;; ssh.el ends here -- cgit 1.4.1