Re: Why does emacs lack non-tramp tools to find files as sudo?

Manuel Giraud <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Michael Albinus <[email protected]> writes:

> BP25 <[email protected]> writes:
>
> Hi,
>
>> Emacs is the most complete and modern editor out there. How can it
>> lack "innate" (non tramp) facilities to edit files as superuser?
>
> What is wrong with Tramp (beside bias)?
>
> If you edit a file or you visit a directory with dired, you can type
> 'C-x x @' in order to open the file/directory with sudo permissions.
>
> If you are in dired, you can type '@' in order to open the
> file/directory at point with sudo permissions.
>
> Both work even with multi-hops.

TIL.  Thanks for this tips!  I myself have customized
tramp-file-name-with-method to "doas".
>
> The key bindings are available with Emacs 31.1. I would call this
> "innate".
>
> Best regards, Michael.
>
>
>

-- 
Manuel Giraud
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.