Make find-file-as-root reuse current buffer

This commit is contained in:
Adam Goldsmith 2018-02-20 15:40:22 -05:00
parent ca73965b2a
commit 7d8d1184b7
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@
(setq tramp-default-method "ssh")
(defun find-file-as-root ()
(interactive)
(find-file (concat "/sudo::" (buffer-file-name)))))
(find-alternate-file (concat "/sudo::" (buffer-file-name)))))
(use-package comint
:config