diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3c06f6f..14ebdaa 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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