From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: Re: faces lost in text terminal Date: Wed, 12 Oct 2011 10:28:10 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec520f4e1f5911c04af1bab40 X-Trace: dough.gmane.org 1318433308 24008 80.91.229.12 (12 Oct 2011 15:28:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 15:28:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jai Dayal Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 17:28:24 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 1RE0jI-0007MI-Ej for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 17:28:24 +0200 Original-Received: from localhost ([::1]:57054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE0jI-0003sa-1c for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 11:28:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE0jB-0003s4-Vh for help-gnu-emacs@gnu.org; Wed, 12 Oct 2011 11:28:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE0j6-0005c6-Ua for help-gnu-emacs@gnu.org; Wed, 12 Oct 2011 11:28:17 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:54126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE0j6-0005bv-Qw for help-gnu-emacs@gnu.org; Wed, 12 Oct 2011 11:28:12 -0400 Original-Received: by qadb17 with SMTP id b17so836618qad.0 for ; Wed, 12 Oct 2011 08:28:11 -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=CggaRL/0quwD6dgwByA6hp1MyhfuJg5NniC7gl7LTZA=; b=XVqxL5gqRQJuT6IZ6Mvjz3LCu1iWh4RSteaMDbQ+zObHYlhsyI0CROejMv63ACO4tF 3TA8O0DXWcmO5xbZkSa5jXYikxDlmm9WYwTiyDpOzRDXjl2XYBbb4cIOfUD626yJpiIJ +4RyWT7GQhhdtwdFj+vxjsT4EewcQbs3v6cw0= Original-Received: by 10.68.33.164 with SMTP id s4mr1840748pbi.119.1318433290817; Wed, 12 Oct 2011 08:28:10 -0700 (PDT) Original-Received: by 10.142.68.6 with HTTP; Wed, 12 Oct 2011 08:28:10 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 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:82527 Archived-At: --bcaec520f4e1f5911c04af1bab40 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Oct 9, 2011 at 12:42 PM, Jai Dayal wrote: > 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) >>> >>> That works. > >>> 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? >> > > Mine is 21.4.1 which comes with linux redhat. --bcaec520f4e1f5911c04af1bab40 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Oct 9, 2011 at 12:42 PM, Jai Day= al <dayalsoap@g= mail.com> wrote:
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:1= 8 PM, Rustom Mody <rustompmody@gmail.com> wrote:


On Sun, Oct 9, 2011 at 7:23 AM, Jai Dayal <= ;dayalsoap@gmail.c= om> wrote:
enable font-lock-mode

either

M-x font-lock-mode

or=A0= in your new .emacs file

(global-font-lock-mode 1)

That works.=A0

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 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?


Mine is= 21.4.1 which comes with linux redhat.=A0

--bcaec520f4e1f5911c04af1bab40--