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

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

Re: Emacs running as root with different colors than the standard one.


From: Pascal J. Bourguignon
Subject: Re: Emacs running as root with different colors than the standard one.
Date: Sun, 15 Jul 2012 10:43:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Alexandre Schenberg <ale.schenberg@gmail.com> writes:

>>> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
>>> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
>>> Behalf Of Alexandre Schenberg
>>> Sent: Thursday, 2012 July 12 20:19
>>> To: help-gnu-emacs@gnu.org
>>> Subject: Emacs running as root with different colors than the standard
>>> one.
>>>
>>> As the title says, when I executes emacs as root, it uses colors
>>> different when compared with it running with the privileges of a
>>> regular user.
>>> So I would like to know where these colors settings might be stored,
>>> so that I can copy then to use as a regular user.
>>> P.S:  There isn't a .emacs file under root

Then why don't you create it?

>>> P.S2: Only when running emacs directly as root it uses the mentioned
>>> colors, when I use "su" it uses the standard colors.

Put that:

    (when (= (user-uid) 0)
      (set-background-color "red")
      (set-foreground-color "black"))

both in your ~/.emacs and in root's.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


reply via email to

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