From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.help Subject: Re: faces lost in text terminal Date: Sun, 9 Oct 2011 07:48:00 +0530 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd6b3068bd04004aed448f8 X-Trace: dough.gmane.org 1318126691 8571 80.91.229.12 (9 Oct 2011 02:18:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Oct 2011 02:18:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Shiyuan To: Jai Dayal Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 09 04:18:07 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RCixq-0004Io-LQ for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Oct 2011 04:18:06 +0200 Original-Received: from localhost ([::1]:56260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCixq-0001fl-77 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Oct 2011 22:18:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCixl-0001fc-Rr for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 22:18:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCixl-0005Mo-0S for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 22:18:01 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:63646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCixk-0005Mi-RS for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 22:18:00 -0400 Original-Received: by iaen33 with SMTP id n33so7792214iae.0 for ; Sat, 08 Oct 2011 19:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JZPyDgEnix6YpVI4Xs2XjXcuJUTj0Jrnib6JrJ3iJ50=; b=VLfqT77fcWe8/V/dnRfueLq7z75M/9vTJI6VbFqw09gNA+64Q/QIRcFQAGXeHvvbI1 D5lVh/frc53zHIARVtiPYbMEQvw6sbrcTHSmVLOLb+0Wa0E0/s90WQIKfvIV2NxMOquq IDmD8B1e+RR0lxVZO0j4bdr8T72Ts7FJnQOhY= Original-Received: by 10.231.82.131 with SMTP id b3mr5839312ibl.74.1318126680264; Sat, 08 Oct 2011 19:18:00 -0700 (PDT) Original-Received: by 10.231.168.21 with HTTP; Sat, 8 Oct 2011 19:18:00 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 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:82511 Archived-At: --000e0cd6b3068bd04004aed448f8 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Oct 9, 2011 at 7:23 AM, Jai Dayal wrote: > enable font-lock-mode > > either > > M-x font-lock-mode > > or in your new .emacs file > > (global-font-lock-mode 1) > > > On Sat, Oct 8, 2011 at 9:34 PM, Shiyuan wrote: > >> Hi, >> I lost the font color in c++-mode after I deleted the .emacs file >> mistakenly. What do I need in my .emacs in order to display different colors >> in c++-mode? Thanks. >> Shiyuan >> > > font-lock should be on by default no? (At least in recent emacses) So... Whats your emacs-version? ie M-x emacs-version And what is the behavior when you start it with emacs -Q foo.cpp? --000e0cd6b3068bd04004aed448f8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Oct 9, 2011 at 7:23 AM, Jai Daya= l <dayalsoap@gm= ail.com> wrote:
enable font-lock-mode

either

M-x font-lock-mode

or=A0= in your new .emacs file

(global-font-lock-mode 1)


On Sat, Oct 8, 2011 at 9= :34 PM, Shiyuan <gshy2014@gmail.com> wrote:
Hi,=A0
=A0 = =A0 I =A0lost the font color in c++-mode after I deleted =A0the .emacs file= mistakenly. What do I need in my .emacs in order to display different colo= rs in c++-mode? Thanks.=A0
Shiyuan =A0 =A0



font-lock should be on by default no?= (At least in recent emacses)
So... Whats your emacs-version? ie M-x ema= cs-version
And what is the behavior when you start it with emacs -Q foo.= cpp?
--000e0cd6b3068bd04004aed448f8--