about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc/ssh.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-09-01T09·17+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-01T09·17+0100
commitfb5ec068ddd50f6bce41c7a0bad45673db787940 (patch)
tree19b4ff96983c08f451e7da5f58c95b8f6090ec84 /emacs/.emacs.d/wpc/ssh.el
parenta638e15c0dd14a25e6f032b08de5ee1575677497 (diff)
More Elisp linting
This should cover most of the remaining linting errors. After this, I expect
fewer than ten linting errors.
Diffstat (limited to 'emacs/.emacs.d/wpc/ssh.el')
-rw-r--r--emacs/.emacs.d/wpc/ssh.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/emacs/.emacs.d/wpc/ssh.el b/emacs/.emacs.d/wpc/ssh.el
index 4176872847dc..a642e6fa3e57 100644
--- a/emacs/.emacs.d/wpc/ssh.el
+++ b/emacs/.emacs.d/wpc/ssh.el
@@ -37,23 +37,23 @@
 ;; Maximizes the tramp debugging noisiness while I'm still learning about tramp.
 (setq tramp-verbose 10)
 
-(defcustom ssh/hosts '("desktop" "socrates")
+(defcustom ssh-hosts '("desktop" "socrates")
   "List of hosts to which I commonly connect.
-Note: It could be interesting to read these values from ~/.ssh/config, but
+Note: It could be interesting to read these values from ~/.ssh-config, but
   that's more than I need at the moment.")
 
-(defun ssh/sudo-buffer ()
+(defun ssh-sudo-buffer ()
   "Open the current buffer with sudo rights."
   (interactive)
   (with-current-buffer (current-buffer)
     (if (s-starts-with? "/ssh:" buffer-file-name)
-        (message "[ssh.el] calling ssh/sudo-buffer for remote files isn't currently supported")
+        (message "[ssh.el] calling ssh-sudo-buffer for remote files isn't currently supported")
       (find-file (format "/sudo::%s" buffer-file-name)))))
 
-(defun ssh/cd-home ()
+(defun ssh-cd-home ()
   "Prompt for an SSH host and open a dired buffer for wpcarro on that machine."
   (interactive)
-  (let ((machine (completing-read "Machine: " ssh/hosts)))
+  (let ((machine (completing-read "Machine: " ssh-hosts)))
     (find-file (format "/ssh:wpcarro@%s:~" machine))))
 
 (provide 'ssh)