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: Re: How to open a file in sh-mode Date: Thu, 14 Aug 2008 13:36:44 +0200 Message-ID: <38b2ab8a0808140436k2603feaegdf234af24d6607cd@mail.gmail.com> References: <38b2ab8a0808140053g6261aeafmd74692199cea07eb@mail.gmail.com> <87tzdodmu0.fsf@localhorst.mine.nu> <38b2ab8a0808140204s9badea6w38526cef832ceb79@mail.gmail.com> <1454386A-4592-45B7-A89E-322BB9E7F783@Web.DE> <38b2ab8a0808140402m17d776d3n7d0ee23f15cf3b2e@mail.gmail.com> <48A41506.1010806@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 1218713842 11264 80.91.229.12 (14 Aug 2008 11:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 11:37:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 13:38:14 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 1KTb9h-0005EX-6P for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 13:38:13 +0200 Original-Received: from localhost ([127.0.0.1]:49455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTb8k-0008Ao-PE for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 07:37:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTb8L-00087S-Lr for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:36:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTb8I-00084W-4f for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:36:47 -0400 Original-Received: from [199.232.76.173] (port=46383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTb8H-00084C-OI for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:36:45 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.240]:15589) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTb8H-0008Oj-7t for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:36:45 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so384283rvb.6 for ; Thu, 14 Aug 2008 04:36:44 -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:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=xtPdm5XFT8GZYDeNjZU11NO9tqcCRu1ni51pSfbgQFk=; b=yG56RKhJsnh9yD5S5qs1DOvfxp4S3mu9xbkqjs9B3V3+D2a3uitxwVa0alR06snoZA WVxD1ig2YPhxZHCMkPGzAmmrsRD0ntEo47C46lOJJ03oelE7v+iwOJSszul5PFV4i0GU n8hBn1eC6RsaNf5EzGVwPWL2KxUu8/AOmLEQo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=YmJOiL8MD4lJ02kgsu1bjGdAk2t7FsvYlplj6+gAcn0UBDBtZ0bvyGwyZ/JstdPVKC J5jwiiwKOUwuwLcdPv95OaVcwoR0SqZFtZ9fNOr84IHG1pCanb40641qYhlPSFSLIqVq dJhpeipIQxHFkGUNTFjcp5NZC0wUOgHkccnys= Original-Received: by 10.140.207.2 with SMTP id e2mr561098rvg.187.1218713804152; Thu, 14 Aug 2008 04:36:44 -0700 (PDT) Original-Received: by 10.140.170.16 with HTTP; Thu, 14 Aug 2008 04:36:44 -0700 (PDT) In-Reply-To: <48A41506.1010806@gmail.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:56606 Archived-At: On Thu, Aug 14, 2008 at 1:20 PM, Lennart Borgman (gmail) wrote: > Francis Moreau wrote: >> >> yes that would be possible, but I fail to understand why I can't start >> emacs in a specific >> mode from the command line. >> >> IOW why can't I simply do ? >> >> $ emacs -f sh-mode FOO > > Because you are doing it in the wrong order. sh-mode will apply to the > current buffer. Try > > $emacs FOO -f sh-mode > > But ... - do you really want to do this? It means you are using a new eamcs > instance for every file. > So you mean that I need to this: $ cat > emacs-ui-is-dumb.sh<