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 12:06:59 +0200 Message-ID: <38b2ab8a0808140306s2a94180es1347bb378331be1d@mail.gmail.com> References: <38b2ab8a0808140053g6261aeafmd74692199cea07eb@mail.gmail.com> <200808141016.12117.henrikau@stud.ntnu.no> <38b2ab8a0808140203s53c339f3k70d5887d42a4de2f@mail.gmail.com> <200808141203.22315.henrikau@stud.ntnu.no> 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 1218709425 30419 80.91.229.12 (14 Aug 2008 10:23:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 10:23:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: henrikau@stud.ntnu.no Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 12:24:37 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 1KTa0N-0005y8-1j for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 12:24:31 +0200 Original-Received: from localhost ([127.0.0.1]:39536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTZzQ-00031C-Jf for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 06:23:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTZjV-000564-0W for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 06:07:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTZjR-00054z-SZ for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 06:07:04 -0400 Original-Received: from [199.232.76.173] (port=58124 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTZjQ-00054f-ET for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 06:07:00 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.244]:1274) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTZjQ-0003HK-0k for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 06:07:00 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so347638rvb.6 for ; Thu, 14 Aug 2008 03:06:59 -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=PqGDG8Pqw7iPGpTS4SvDiq5/x43fJrmZ65OiyDOwdF0=; b=EwxrIK6hOlfeidCwk2yV9iauOytcr5fzM/hY/eVSTHiR1J0UCEG+ygiUnyDmQDRoSO YFYWCAZdI2Q9HUU2gBIPMWVyziUInINEhiP5uRIcmcG4wCZ2FjCc9Lg1T+U7tpqHTRDK tASCn7JNSbajN+IZkqdzr6biqFrM1fnutohIQ= 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=yGy2zUFiGwZsBc3envXs6vclzoyJPhYtLOkvTISCejBYfa/ta0XmQVvMHs0qMvtliV zW/6dhW6jnwRpM7n1q0voJm5epr1IgHz7K1Oa1lwcc8e7YKdHzTOcrSBzqkr9+pNicN6 5WSJa/27gQ+a00ZeyhqSwrAXDsRhoUtS1DR5g= Original-Received: by 10.141.171.6 with SMTP id y6mr504003rvo.85.1218708419056; Thu, 14 Aug 2008 03:06:59 -0700 (PDT) Original-Received: by 10.140.170.16 with HTTP; Thu, 14 Aug 2008 03:06:58 -0700 (PDT) In-Reply-To: <200808141203.22315.henrikau@stud.ntnu.no> 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:56600 Archived-At: On Thu, Aug 14, 2008 at 12:03 PM, Henrik Austad wrote: > > so basically, I think the question boils down to: > > """ > How do I create a hook in my .emacs so that all files starting with bash-fc-* > will load sh-mode? > """ > Well that would be the last thing I would do. My question is: """ How do I start emacs in sh-mode from the shell with a file name appended at the end of the command """ It doesn't seem to be all that complex ! -- Francis