help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac terminal.app: starting emacs, possibly as sudo


From: Marius Hofert
Subject: Re: Mac terminal.app: starting emacs, possibly as sudo
Date: Mon, 17 Oct 2011 10:29:05 +0200

Dear Michael,

1) thanks a lot, that will definitely be useful in the future!

2) Concerning my last question: Is there any harm in "replacing" /usr/bin/emacs 
by /Applications/Emacs.app/Contents/MacOS/Emacs? This way one can easily use 
"sudo emacs" or "emacs -Q"... and start the GUI emacs with these features.

Cheers,

Marius


On 2011-10-17, at 10:07 , Michael Albinus wrote:

> Marius Hofert <marius.hofert@math.ethz.ch> writes:
> 
>> Dear Perry, Dear Peter,
> 
> Hi,
> 
>> Well, maybe I should rethink the whole process: When do I want to open
>> emacs as root? From time to time, I open a file and modify it. When I
>> try to save it, I get the read-only warning. This means I would like
>> to be su to modify this file. It's probably best to just open it with
>> C-x C-f /sudo::path-to-file... But by closing and reopening all my
>> modifications to the file are lost. How can one avoid this?
> 
> If you edit file /a/b/c and you cannot save it because it is owned by
> root, you could save it by "C-x C-w /sudo::/a/b/c".
> 
>> Cheers,
>> 
>> Marius
> 
> Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]