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:51:00 +0200 Message-ID: <38b2ab8a0808140451s354a962evd3148eace987ef66@mail.gmail.com> References: <38b2ab8a0808140053g6261aeafmd74692199cea07eb@mail.gmail.com> <200808141203.22315.henrikau@stud.ntnu.no> <38b2ab8a0808140306s2a94180es1347bb378331be1d@mail.gmail.com> <200808141336.54864.henrikau@orakel.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 1218714696 13798 80.91.229.12 (14 Aug 2008 11:51:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 11:51:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Henrik Austad" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 13:52:19 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 1KTbNL-0001yE-0k for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 13:52:19 +0200 Original-Received: from localhost ([127.0.0.1]:60651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTbMO-00067t-GX for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 07:51:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTbM6-00067n-Ng for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:51:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTbM5-00067S-J2 for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:51:02 -0400 Original-Received: from [199.232.76.173] (port=53153 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTbM5-00067P-Bm for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:51:01 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.248]:20472) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTbM4-00058B-Ug for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 07:51:01 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so389936rvb.6 for ; Thu, 14 Aug 2008 04:51:00 -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=0Tpj63HBkrYt4F8VvWDGBw+BgQgdNnupzz8lBUEa3jk=; b=IHFe+hFrUItpa3zLVBn81mwjWBYycbZwzA8KOVCobCfDcGWuaQUedv4USs5uR4O1iv 6aVq/VO2furh2GpHJn21pTmAoDIKQy/77mtGuKFWC5XzzIiHnIaJ73AcU4x9jaPbivqi FPw9rgfYIZ9QBKO6FDHIPQyBZt9SHfPHEtX/g= 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=BuTdEQgtd/4obcFxducwdPJ8rarJs1pQ6QGqOf1jp/2M2CgVabKtCzzP9Tb31D5hx7 gr+b1nksiFrQByFtYcsgMJIXIYmss2GjiA0ZBzVOcouOak63r+mZoID5YNBK1gTkMjfd 82qcNZT1Jl5XOFrtQjbOTJYGtOwCxH+5c9lr4= Original-Received: by 10.141.205.10 with SMTP id h10mr573874rvq.54.1218714660113; Thu, 14 Aug 2008 04:51:00 -0700 (PDT) Original-Received: by 10.140.170.16 with HTTP; Thu, 14 Aug 2008 04:51:00 -0700 (PDT) In-Reply-To: <200808141336.54864.henrikau@orakel.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:56609 Archived-At: On Thu, Aug 14, 2008 at 1:36 PM, Henrik Austad wrote: > ok, I think I got something that works, thanks to all the guys at #emacs for > this (ams, pgas, bpalmer) > > In .emacs add the following: > (add-to-list 'auto-mode-alist '("bash-fc" . sh-mode)) > > then; > export FCEDIT="emacs" > > then sh-mode will be loaded when you open files starting with bash-fc > > as a test; > echo "Hello World" && fc > thanks for that but emacs command line option usage look soooo weird -- Francis