From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: How to open a file in sh-mode Date: Thu, 14 Aug 2008 09:53:39 +0200 Message-ID: <38b2ab8a0808140053g6261aeafmd74692199cea07eb@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218700714 3806 80.91.229.12 (14 Aug 2008 07:58:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 07:58:34 +0000 (UTC) To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 09:59:26 2008 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 1KTXjv-0007tb-Uq for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 09:59:24 +0200 Original-Received: from localhost ([127.0.0.1]:33838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTXiz-0002KO-Hk for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 03:58:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTXi1-0001uS-GL for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 03:57:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTXhy-0001s8-4y for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 03:57:23 -0400 Original-Received: from [199.232.76.173] (port=38568 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTXhx-0001rw-Pa for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 03:57:21 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48636) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTXhx-0005hi-E4 for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 03:57:21 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:54671) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KTXdH-0000Xs-EE for gnu-emacs-help@gnu.org; Thu, 14 Aug 2008 03:52:31 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KTXeP-0004ml-P5 for gnu-emacs-help@gnu.org; Thu, 14 Aug 2008 03:53:43 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.246]:52266) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTXeP-0004mI-F5 for gnu-emacs-help@gnu.org; Thu, 14 Aug 2008 03:53:41 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so292287rvb.6 for ; Thu, 14 Aug 2008 00:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=h+/qh9l56ooW5dtbsNmlsRxiVNLGPhx7QsO9lQCP0+E=; b=VWGvYjAwsFb3nYIr5Ir8618kIveSGkMsi3178tAU9H0jzNfQFHcAA+kgvxokHaoUHW 5WdrHttyb8iJplAdNiPmPyu9VWbq9T2zoun92gZqA1j0p8NRZ8udRrgXlSzkzY1Wk+IZ duaiz9mZzcTChyhqdaxfb8MThoAtCroCYNSOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=vKZrz4X13iR1wXPXvpQa5fjp1fNm1XwCCJSmmP8u7HjRXjvpCuABKZzSN+jJWdNy6O M4APmNI7oSC0IEKc275ltjvPkx2mUpFdfJZImwG8NN5kmxZCG9nIUZ93SmDfPdb0Gwb1 gHDVpPR1aWVL7DRtALKtrQtYuudsHuHaixz5Y= Original-Received: by 10.141.50.11 with SMTP id c11mr425147rvk.222.1218700419872; Thu, 14 Aug 2008 00:53:39 -0700 (PDT) Original-Received: by 10.140.170.16 with HTTP; Thu, 14 Aug 2008 00:53:39 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:56593 Archived-At: Hello, I'm trying to open a file with emacs automatically set on sh-mode. The file name can't be used to guess that emacs should be in sh-mode when opening it. So I tried: $ emacs -f sh-mode foo But that doesn't work. Could anybody give me some advices ? Thanks -- Francis