|
|
|
|
|
by hollerith
4200 days ago
|
|
>ad-hoc editing with sudo (precluding use of emacsclient) It looks to me like you're probably unaware that an Emacs not running as root can edit files owned by root. The way it goes about it (in a word, TRAMP) is a little complicated under the hood, but (at least for files residing on the same machine as the Emacs process) reliable. Specifically, both C-x C-f /sudo::/etc/hosts and `emacsclient /sudo::/etc/hosts` work. |
|