From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jai Dayal Newsgroups: gmane.emacs.help Subject: Re: faces lost in text terminal Date: Sun, 9 Oct 2011 13:42:09 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6dee737c1096d04aee1320b X-Trace: dough.gmane.org 1318182162 9768 80.91.229.12 (9 Oct 2011 17:42:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Oct 2011 17:42:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Shiyuan To: Rustom Mody Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 09 19:42:38 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 1RCxOX-0005cj-PC for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Oct 2011 19:42:37 +0200 Original-Received: from localhost ([::1]:48148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCxOX-0001sA-4n for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Oct 2011 13:42:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCxOR-0001rr-KI for help-gnu-emacs@gnu.org; Sun, 09 Oct 2011 13:42:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCxOQ-0002Yv-Ej for help-gnu-emacs@gnu.org; Sun, 09 Oct 2011 13:42:31 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:38422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCxOQ-0002Yi-7D for help-gnu-emacs@gnu.org; Sun, 09 Oct 2011 13:42:30 -0400 Original-Received: by wyh15 with SMTP id 15so2265916wyh.0 for ; Sun, 09 Oct 2011 10:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2WZT9tOc2XnoIZNJgY07YsNWwihQVu939xl46SNVuAE=; b=bObktt/F72Z1EB6u+xjXTo8mhbjZY+bTaaRnkUB06KciAa1LFamgXPkqDVRz4nEy56 neqeZYg7kL5ylgc7go69cxv6drtJVtAtXWymT13H8b7wVx8jGzUPuMcg/qNg8aAv+MLE ivcPBWU5JuccAoCx9gQ6YYDfYVVhDN0bZLkU4= Original-Received: by 10.216.135.145 with SMTP id u17mr1552183wei.85.1318182149228; Sun, 09 Oct 2011 10:42:29 -0700 (PDT) Original-Received: by 10.216.157.212 with HTTP; Sun, 9 Oct 2011 10:42:09 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.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:82514 Archived-At: --0016e6dee737c1096d04aee1320b Content-Type: text/plain; charset=ISO-8859-1 In some older versions, I've noticed font-lock-mode is not enabled. I frequently ssh into a server and it's emacs 21.x On Sat, Oct 8, 2011 at 10:18 PM, Rustom Mody wrote: > > > 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? > --0016e6dee737c1096d04aee1320b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable In some older versions, I've noticed font-lock-mode is not enabled. =A0= I frequently ssh into a server and it's emacs 21.x

On Sat, Oct 8, 2011 at 10:18 PM, Rustom Mody <rustompmody@gmail.com>= ; wrote:


On Sun, Oct 9, 2011 at 7:23 AM, Jai Dayal <day= alsoap@gmail.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, Shiyu= an <gshy2014@gmail.com> wrote:
Hi,=A0
=A0 =A0 I = =A0lost the font color in c++-mode after I deleted =A0the .emacs file mista= kenly. What do I need in my .emacs in order to display different colors 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 emacs-version
And what is the behavior when you start it with e= macs -Q foo.cpp?

--0016e6dee737c1096d04aee1320b--