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")
|
(setq tramp-default-method "ssh")
|
||||||
(defun find-file-as-root ()
|
(defun find-file-as-root ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file (concat "/sudo::" (buffer-file-name)))))
|
(find-alternate-file (concat "/sudo::" (buffer-file-name)))))
|
||||||
|
|
||||||
(use-package comint
|
(use-package comint
|
||||||
:config
|
:config
|
||||||
|
Loading…
Reference in New Issue
Block a user