You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
.emacs.d/config/tramp/config-tramp-sudo-hang-fix.el

4 lines
125 B
EmacsLisp

(defun sudo-edit ()
(interactive)
(find-file (format "/sudo:root@%s:%s" system-name (read-file-name "Edit as root: "))))