From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.help Subject: how to map sh-mode to mean bash-mode Date: Sat, 16 Jul 2011 07:58:41 +0800 Message-ID: <87mxgfxfim.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310774440 22778 80.91.229.12 (16 Jul 2011 00:00:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2011 00:00:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 16 02:00:36 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 1QhsJ9-0004Qs-3A for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jul 2011 02:00:35 +0200 Original-Received: from localhost ([::1]:50654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhsJ7-0000aq-W6 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 20:00:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhsHR-0000aQ-EP for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 19:58:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhsHP-0001qb-M9 for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 19:58:49 -0400 Original-Received: from mailbigip.dreamhost.com ([208.97.132.5]:56610 helo=homiemail-a1.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhsHO-0001qW-Mf for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 19:58:47 -0400 Original-Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id ECD8E34806B for ; Fri, 15 Jul 2011 16:58:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=dusaLY9Xk/L0WucttFIe4doA3BJjpFxPaYHQMqEOolly1ZnVNCPnz0BP3pzE ca3cofmTZ2xwMVOdA02qYuDY+cHtl1cbDPkm3CGPQal0+S0UWyVt0oW6/nxw4ZcJ YurSIBB+iRmRHPrLBv0nc9lxX4eZS61mjnI/m1DgY2PIVcY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=s0OyM8W/W7/kz0Npu0N+q6sLpoM=; b=IauMo4fjLaOedN6J aD/22U8Ckal7CkoeKxgxg7893wxVmxAx/284EZPFhikfcHIzKM6oXW1m8EhWira+ kU1mTkvEo06sjWTpE2XFC/898YqilryWXDE+Q1QuoMTJ7mqsyddn1FyRQ3L8X4vI EaxOwq6Pd52F5o5kaWNsKZeVZeA= Original-Received: from jidanni.org (218-163-1-108.dynamic.hinet.net [218.163.1.108]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPSA id A3F1934806A for ; Fri, 15 Jul 2011 16:58:44 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.97.132.5 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:81610 Archived-At: $ 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.