From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: colored fonts in batch mode Date: Thu, 8 May 2008 04:22:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3eae7850-9fe0-413f-8e42-169ebf129ec6@k13g2000hse.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210246879 11282 80.91.229.12 (8 May 2008 11:41:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2008 11:41:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 08 13:41:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ju4VQ-0008Cj-VG for geh-help-gnu-emacs@m.gmane.org; Thu, 08 May 2008 13:41:49 +0200 Original-Received: from localhost ([127.0.0.1]:60969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ju4Ui-0001H3-Qo for geh-help-gnu-emacs@m.gmane.org; Thu, 08 May 2008 07:41:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k13g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-Distribution: world Original-NNTP-Posting-Host: 83.67.23.108 Original-X-Trace: posting.google.com 1210245767 29695 127.0.0.1 (8 May 2008 11:22:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 8 May 2008 11:22:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k13g2000hse.googlegroups.com; posting-host=83.67.23.108; posting-account=pYxWjwkAAACsHSUNDoi5N05LVCTP7PVM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:158448 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53815 Archived-At: On May 8, 10:15 am, Carsten Dominik wrote: > This works great in interactive work, when I actually have a window > system running. However, in batch mode, Emacs seems to think that it > is displaying on a black-and-white device, so the fontification is much > poorer in this case. Try putting the following in a file (batch-color.el) and loading it as the first part of your batch operation: (set-frame-parameter nil 'display-type 'color) (defun display-color-cells (&optional display) "Fake hicolor display" 65536)