From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: how to map sh-mode to mean bash-mode Date: Sun, 17 Jul 2011 11:26:54 +0200 Message-ID: <4E22AADE.1090701@easy-emacs.de> References: <87mxgfxfim.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310894904 14679 80.91.229.12 (17 Jul 2011 09:28:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 09:28:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 17 11:28:17 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiNe5-0007Po-Gd for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 11:28:17 +0200 Original-Received: from localhost ([::1]:51078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiNe4-0002iB-BF for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 05:28:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiNcp-0002hy-2m for help-gnu-emacs@gnu.org; Sun, 17 Jul 2011 05:26:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiNcn-0003qo-Ml for help-gnu-emacs@gnu.org; Sun, 17 Jul 2011 05:26:59 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:63608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiNcn-0003qk-99 for help-gnu-emacs@gnu.org; Sun, 17 Jul 2011 05:26:57 -0400 Original-Received: from [192.168.178.27] (brln-4dbc6ccd.pool.mediaWays.net [77.188.108.205]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LpRkv-1RNEkM1lK9-00eonZ; Sun, 17 Jul 2011 11:26:55 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 In-Reply-To: <87mxgfxfim.fsf@jidanni.org> X-Provags-ID: V02:K0:nj9e1ZcZQwAJC2MjFxPHdq6V5FOSxfAheQNarwfiIMS EEwWWHpeu3ja6srlILPRBT/2YiRwn6CF1FYWurN2353ryUZ3Nx DWapkVMTuXu6bGDOWtMj+DeKeTLK++9vzEJUbZp7aKKTx4YdPZ 8fwECqnvFmODbQ9psTGMx9mcgEkAFe4Plg5nwQrETR0tXqnV1v GVwjK/L40AVwrm0m0TBBr1yvhfiqhJc7NG9pLvN5UM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81626 Archived-At: Am 16.07.2011 01:58, schrieb jidanni@jidanni.org: > $ touch a.sh a.bash > $ emacs -nw -Q a.bash a.sh > See they are in different modeline modes? > How can I make them both bash mode? > No matter if it is filename prefix, or #!/bin/sh or whatever. > I tried defalias, and it didn't work. > > Hi, AFAIU you want a bash-specific editing environment. I'm interested in that question, as delivered some shell-script tools. Maybe have a look at sh-beg-end.el at https://launchpad.net/s-x-emacs-werkstatt/ BTW, what should such bash-mode do, what sh-mode and shell-script-mode do not? Andreas -- https://launchpad.net/python-mode https://launchpad.net/s-x-emacs-werkstatt/