Tramp with helm interface
M-x helm-tramp
Display server list from your ~/.ssh/config in helm interface
Filter by helm
You can connect your server with tramp
Selecting the list with sudo will lead to the server as root
You can edit your server's nginx.conf on your emacs!
When you finish editing nginx.conf you clean the tramp buffer with tramp-cleanup-all-buffers
command.
Since I can not remember tramp-cleanup-all-buffers
command I set a defalias called exit-tramp
.
- Emacs 24 or higher
- helm 1.7.7 or higher
You can install helm-tramp.el
from MELPA with package.el
(M-x package-install helm-tramp
).
(setq tramp-default-method "ssh")
(defalias 'exit-tramp 'tramp-cleanup-all-buffers)
(define-key global-map (kbd "C-c s") 'helm-tramp)
If the shell of the server is zsh it is recommended to connect with bash.
(eval-after-load 'tramp '(setenv "SHELL" "/bin/bash"))