[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 09:34:22 +0200 |
Dear Perry, Dear Peter,
thanks a lot for helping.
I tried sudo /Applications/Emacs.app/Contents/MacOS/bin/emacs and I am indeed
root in the shell :-)
There are some things that are strange, though: Option/Alt is not Meta anymore,
so when I wanted to start a shell with M-x ... I obtained a "=" symbol (or
rather, an "approximate" symbol). I realized that ESC is now Meta.
=> Are there any other significant changes I should be aware of?
=> Is it possible to get the same/similar behavior as in the GUI, maybe through
simply redefining root's .emacs and .emacs.d as my own? (bad practice?)
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?
Cheers,
Marius
On 2011-10-17, at 01:43 , Peter Dyballa wrote:
>
> Am 17.10.2011 um 00:26 schrieb Marius Hofert:
>
>> 1) How can I have the new emacs version opened when typing "emacs" in the
>> terminal?
>
> Either reorder PATH or use the whole path to the executable! Or use a shell
> alias...
>
>> 2) Is it possible to start emacs in "sudo mode", so starting emacs via
>> "sudo emacs" in the terminal (and then being root when opening a shell from
>> within emacs)?
>
> It won't work with the NS and "AppKit" variants (do you know of any "native"
> mac OS X GUI application that you can launch with sudo and then runs with
> elevated privileges?), it works with the X client and also without windowing
> system (in terminal).
>
> --
> Mit friedvollen Grüßen
>
> Pete
>
> If all else fails read the instructions.
> - Donald Knuth
>
Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/16
- Re: Mac terminal.app: starting emacs, possibly as sudo,
Marius Hofert <=
- Re: Mac terminal.app: starting emacs, possibly as sudo, Michael Albinus, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo, Marius Hofert, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo, Michael Albinus, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo, Marius Hofert, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/17
Re: Mac terminal.app: starting emacs, possibly as sudo, Perry Smith, 2011/10/17
Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/17
Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/17