From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric B." Newsgroups: gmane.emacs.help Subject: Re: Is there an emacs bash script mode / colouring? Date: Thu, 17 Sep 2009 14:41:20 -0400 Organization: UseNetServer.com Message-ID: <71fa2$4ab2876f$4c0ab2c1$16688@TEKSAVVY.COM> References: <87ab0wc9ac.wl%anselm.helbig+news2009@googlemail.com> <21c77$4ab10a12$4c0ab2c1$8986@TEKSAVVY.COM> <4ab1111e$0$285$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1253217043 6348 80.91.229.12 (17 Sep 2009 19:50:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2009 19:50:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 17 21:50:36 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 1MoN00-0004hp-2B for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 21:50:36 +0200 Original-Received: from localhost ([127.0.0.1]:36979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoMzz-0000Xd-8f for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 15:50:35 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!TEKSAVVY.COM-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 51 Original-X-Trace: 71fa24ab2876fe9af176416688 Original-Xref: news.stanford.edu gnu.emacs.help:173125 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:68249 Archived-At: "Colin S. Miller" wrote in message news:4ab1111e$0$285$14726298@news.sunsite.dk... > Eric B. wrote: >> "Anselm Helbig" wrote in message >> news:87ab0wc9ac.wl%anselm.helbig+news2009@googlemail.com... >>> Hi! >>> >>>> This may sound like a silly question, but is there a major/minor mode >>>> for >>>> emacs that does syntax colouring and auto-formatting of bash scripts? >>>> >>>> I've tried searching the web, but can't seem to find anything >>>> applicable. >>> Well, silly it is. 8-) Bash is supported by sh-mode, which should >>> already be active when you're using the .sh extension for your >>> file. If you don't use an extension, it will be activated after a >>> revert-buffer. >> >> Well, yes - sh mode is activated upon opening of any .sh file. However, >> for some reason, I find it doesn't do any formatting and/or syntax >> colouring. My nxml mode does both, so I know it isn't my terminal that is >> problematic. Is there something in the config that I am missing for >> sh-mode? >> >> I'm running emacs 21.4.1 >> >> Thanks, >> >> Eric >> >> > 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