unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Cecil Westerhof <Cecil@decebal.nl>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs running as root with different colors than the standard one.
Date: Sun, 15 Jul 2012 13:09:49 +0200	[thread overview]
Message-ID: <87d33xcmbm.fsf@Compaq.site> (raw)
In-Reply-To: 87txx95s98.fsf@kuiper.lan.informatimago.com

Op zondag 15 jul 2012 10:43 CEST schreef Pascal J. Bourguignon:

> Put that:
>
> (when (= (user-uid) 0)
> (set-background-color "red")
> (set-foreground-color "black"))
>
> both in your ~/.emacs and in root's.

Does not seem to work. I put as the last statement into my .emacs:
    (when (= (user-uid) 0)
      (set-foreground-color "#a9eadf"))

The messages while starting are in the asked color, but after being
started the text is not.

So I changed it to:
    (when (= (user-uid) 0)
      (run-with-timer 2 nil
                      '(lambda () (set-foreground-color "#a9eadf"))))

Now the messages are not, but the text (very soon) after being started
is.

And now I put it on a more sensible place. ;-}

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


  reply	other threads:[~2012-07-15 11:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13  0:19 Emacs running as root with different colors than the standard one Alexandre Schenberg
2012-07-13  6:00 ` PJ Weisberg
2012-07-13 15:41 ` Doug Lewan
2012-07-15  6:28   ` Alexandre Schenberg
     [not found]   ` <mailman.4808.1342333701.855.help-gnu-emacs@gnu.org>
2012-07-15  8:43     ` Pascal J. Bourguignon
2012-07-15 11:09       ` Cecil Westerhof [this message]
     [not found] <mailman.4673.1342138855.855.help-gnu-emacs@gnu.org>
2012-07-16  0:58 ` Jason Rumney
2012-07-18  9:11   ` Alexandre Schenberg
     [not found] <mailman.4855.1342400337.855.help-gnu-emacs@gnu.org>
2012-07-21  0:22 ` jidanni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d33xcmbm.fsf@Compaq.site \
    --to=cecil@decebal.nl \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).