From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Is there an emacs bash script mode / colouring? Date: Mon, 12 Oct 2009 13:53:26 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87ab0wc9ac.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255351305 6467 80.91.229.12 (12 Oct 2009 12:41:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 12:41:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 12 14:41:35 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 1MxKDU-0005G2-Vw for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 14:41:33 +0200 Original-Received: from localhost ([127.0.0.1]:55334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxKDU-0000q8-ID for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 08:41:32 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-X-Trace: news.eternal-september.org U2FsdGVkX18B6dx3AM3MzF5epr7Sqr5M6VBxn/D5PMYxa4YZkVGD27M+0gqCRjIp29lPr4toJdifEsHLpFYUp09gkBCwINXH8itwaCIkE4YBhWrYgP8sW73RwNxqXJNM218mMMK0yU7VEEoXsJF7AA== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Mon, 12 Oct 2009 11:53:28 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19YnqDQ4n+sBgE3rTtvzC1rbzqO19Q/M08= Cancel-Lock: sha1:1C0/bClWWug/34fFdGjxV04iHdg= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:173789 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:68877 Archived-At: dkcombs@panix.com (David Combs) writes: > In article <87ab0wc9ac.wl%anselm.helbig+news2009@googlemail.com>, > Anselm Helbig wrote: >>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. > > If there's not an sh-extension on the file, how does the > revert-buffer help? Opens in shell mode here when the script properly announces itself e.g #!/bin/bash as the first line. To expect emacs to know otherwise would be a tad optimistic. > > (Sorry -- the only way I learn anything is by asking > stupid questions like this one.) > > David >