From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: Is there an emacs bash script mode / colouring? Date: Mon, 12 Oct 2009 03:32:30 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <87ab0wc9ac.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255319032 18212 80.91.229.12 (12 Oct 2009 03:43:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 03:43:52 +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 05:43:42 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 1MxBow-0006Vl-NF for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 05:43:38 +0200 Original-Received: from localhost ([127.0.0.1]:48061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxBow-00076I-8M for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Oct 2009 23:43:38 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader1.panix.com 1255318350 22482 166.84.1.2 (12 Oct 2009 03:32:30 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Mon, 12 Oct 2009 03:32:30 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: news.stanford.edu gnu.emacs.help:173776 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:68860 Archived-At: 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? (Sorry -- the only way I learn anything is by asking stupid questions like this one.) David