From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Is there an emacs bash script mode / colouring? Date: Fri, 18 Sep 2009 17:19:45 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4ab3b33f$0$286$14726298@news.sunsite.dk> References: <87ab0wc9ac.wl%anselm.helbig+news2009@googlemail.com> <21c77$4ab10a12$4c0ab2c1$8986@TEKSAVVY.COM> <4ab1111e$0$285$14726298@news.sunsite.dk> <71fa2$4ab2876f$4c0ab2c1$16688@TEKSAVVY.COM> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253292226 4192 80.91.229.12 (18 Sep 2009 16:43:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 16:43:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 18:43:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MogYd-00086Q-2J for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 18:43:39 +0200 Original-Received: from localhost ([127.0.0.1]:33585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MogYc-0004uE-Ij for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 12:43:38 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) Original-Newsgroups: gnu.emacs.help In-Reply-To: <71fa2$4ab2876f$4c0ab2c1$16688@TEKSAVVY.COM> Original-Lines: 41 Original-NNTP-Posting-Host: 62.56.58.189 Original-X-Trace: news.sunsite.dk DXC=G?a3k]T4L=2=M\fUi`VZV8HMEID8P; BoZQhlG:0S?bgG4cN2_3 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:173163 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68285 Archived-At: Eric B. wrote: > "Colin S. Miller" wrote in message > news:4ab1111e$0$285$14726298@news.sunsite.dk... >> Eric, >> >> Does >> M-x font-lock-mode >> or >> M-x font-lock-fontify-buffer >> help? > > Aha - both seem to work like a charm. Thanks for the tip. > >> Is the mode-line "(Shell-script [bash])" or "(Shell-script Font[bash]") ? > > My mode-line is Shell-script[bash]. How do I change that to Font[bash]? > > Thanks, > > Eric > > Ah. emacs doesn't indicate if the font-lock minor mode is enabled; Xemacs does. Use M-x font-lock-mode as this enables fontifcation for all edits (until it is toggle off by repeating M-x font-lock-mode) M-x font-lock-fontify-buffer does a one-off fontification - it is only useful if fontify gets confused, which is normally caused by editing the start marker of a multi-line block of text (a comment, string etc). HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.