From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.help Subject: Re: Emacs running as root with different colors than the standard one. Date: Sun, 15 Jul 2012 13:09:49 +0200 Organization: Decebal Computing Message-ID: <87d33xcmbm.fsf@Compaq.site> References: <155DEC68569B714B86C2C7075F5EDA9812CC3818@DAKIYA1.pegasus.local> <87txx95s98.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1342350914 9074 80.91.229.3 (15 Jul 2012 11:15:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2012 11:15:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 15 13:15:14 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqMnA-0002m5-UQ for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jul 2012 13:15:13 +0200 Original-Received: from localhost ([::1]:48369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqMnA-0004wD-1d for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jul 2012 07:15:12 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: lYLrXPFpjyZ8237ODaoN+w.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:4hrhl4OqgY0K0nEPVAxNK9W722s= X-Homepage: http://www.decebal.nl/ Original-Xref: usenet.stanford.edu gnu.emacs.help:193475 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85859 Archived-At: 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