Open a file with su/sudo inside Emacs

前端 未结 9 940
我寻月下人不归
我寻月下人不归 2020-12-12 08:32

Suppose I want to open a file in an existing Emacs session using su or sudo, without dropping down to a shell and doing sudoedit or

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 09:08

    Tramp does not round-trip sudo via SSH, it uses a subshell. See the manual: https://www.gnu.org/software/tramp/#Inline-methods

    Therefore, I recommend that you stick with TRAMP.

提交回复
热议问题