[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to find out which user instantiated this emacs process
From: |
Pascal Bourguignon |
Subject: |
Re: how to find out which user instantiated this emacs process |
Date: |
25 Feb 2004 09:09:08 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
"leo" <halloleo@noospaam.myrealbox.com> writes:
> hi there
>
> on unix usually i instantiate emacs as a normal user, but for special
> purposes i instantiate emacs sometimes as root with the same home directory.
>
> in this case i'd like to set the background to red or so... how can i find
> out in emacs lisp what user owns this emacs?
Did you really try, or are you asking just to increase the trafic?
(when (= (user-uid) 0) (set-background-color "Red"))
--
__Pascal_Bourguignon__ http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he doesn't
want merely because you think it would be good for him.--Robert Heinlein
http://www.theadvocates.org/