From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: syntax highlighting on a console Date: Mon, 25 Nov 2002 23:35:11 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1038341169 17747 80.91.224.249 (26 Nov 2002 20:06:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2002 20:06:09 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Gly6-0004bF-00 for ; Tue, 26 Nov 2002 21:06:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Glz5-00072R-00; Tue, 26 Nov 2002 15:07:03 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!uni-erlangen.de!lmu.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1038340218 72650 193.149.49.134 (26 Nov 2002 19:50:18 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 26 Nov 2002 19:50:18 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:107510 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4061 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4061 Duncan Hughes wrote on Mon, 25 Nov 2002 19:10:29 +0000: > Hi, I'm using Emacs 20.7.2 (mipsel-ps2-linux-gnu) from a tty and I can't > figure out syntax highlighting. > I've tried M-x set-font-lock-mode and it appears to go into font-lock mode > but nothing actually happens to the text. > SH works fine when I run from within X and I just want to highlight > C/C++/Makefiles so I'm pretty sure everything's installed. > Sorry 'bout the dumb newbie question and thanx in advance. > dunch. No problem! "Font-locking" (emacs jargon for syntax highlighting) on a tty didn't appear until Emacs 21.1. Upgrade! (to 21.2). There's a lot a really snazzy new stuff in Emacs 21 anyhow, so it'd be worth upgrading even if you weren't bothered about tty font-locking. For what it's worth, I use tty font-locking (on Linux), I like it, and wouldn't want to be without it. -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").