From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 23:36:01 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AD381065670 for ; Tue, 1 Apr 2008 23:36:00 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id D045C8FC15 for ; Tue, 1 Apr 2008 23:35:59 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.2/8.14.2/Debian-3) with ESMTP id m31N0JkM019632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 2 Apr 2008 02:01:08 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m31N07PN005048; Wed, 2 Apr 2008 02:00:07 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m31MxsBM005028; Wed, 2 Apr 2008 01:59:54 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: freebsd@sopwith.solgatos.com References: <200804012104.VAA29324@sopwith.solgatos.com> Date: Wed, 02 Apr 2008 01:59:53 +0300 In-Reply-To: <200804012104.VAA29324@sopwith.solgatos.com> (Dieter's message of "Tue, 01 Apr 2008 14:04:29 +0100") Message-ID: <87myod6v12.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m31N0JkM019632 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.971, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.43, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@FreeBSD.org Subject: Re: How to I turn off the colors in emacs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 23:36:01 -0000 On Tue, 01 Apr 2008 14:04:29 +0100, Dieter wrote: > FreeBSD 7.0 with package emacs-22.1_2 > > Attempt to edit a C file and emacs goes into some colorized mode. > Of course it chooses colors that are unreadable. > How do I turn OFF the colors and get simple black and white? > (ASCII mode, not X11) The default global-font-lock value has changed in Emacs 22.X, and it is now turned *on*. So if you want to turn font-lock off, you will have to turn it off. This should be as easy as adding the following to your ~/.emacs startup file: (global-font-lock -1) But this doesn't start Emacs in `no colors should be used at all' mode. If you want to do that, you can fire up Emacs with: emacs --color=no Then Emacs will only use the usual `bold', `underline' and `reverse video' attributes for displayed characters. HTH, Giorgos