Make find-file-as-root reuse current buffer
This commit is contained in:
parent
ca73965b2a
commit
7d8d1184b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user