From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Is there an emacs bash script mode / colouring? Date: Tue, 15 Sep 2009 21:11:55 +0200 Organization: Freie Universitaet Berlin Message-ID: <87ab0wc9ac.wl%anselm.helbig+news2009@googlemail.com> References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1253043655 17920 80.91.229.12 (15 Sep 2009 19:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2009 19:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 15 21:40:48 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 1MndtP-0006cz-K1 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Sep 2009 21:40:47 +0200 Original-Received: from localhost ([127.0.0.1]:50089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MndtO-00078M-Sr for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Sep 2009 15:40:46 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: news.uni-berlin.de Aa3b2HUJzLm2li8wVltxLQKjYAdXWSfmfunJZxZ3xMtfJ36r7JiSoSK35o Cancel-Lock: sha1:XxFH4p8CdU2Bj+Tby6j+ENsDwqI= In-Reply-To: Mail-Followup-To: Anselm Helbig Original-Xref: news.stanford.edu gnu.emacs.help:173048 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:68167 Archived-At: 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. What version of emacs are you using or what else are you doing that sh-mode isn't active yet? HTH, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com