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 15:01:02 +0200 Message-ID: <38b2ab8a0808140601p3f524769oe0fdb80c6db60bb@mail.gmail.com> References: <38b2ab8a0808140053g6261aeafmd74692199cea07eb@mail.gmail.com> <200808141016.12117.henrikau@stud.ntnu.no> <38b2ab8a0808140203s53c339f3k70d5887d42a4de2f@mail.gmail.com> <200808141203.22315.henrikau@stud.ntnu.no> <874p5nwzri.fsf@kobe.laptop> 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 1218718992 3493 80.91.229.12 (14 Aug 2008 13:03:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 13:03:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Giorgos Keramidas" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 15:04:00 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 1KTcUK-00045u-7N for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 15:03:36 +0200 Original-Received: from localhost ([127.0.0.1]:53336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTcTN-0003RO-W5 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 09:02:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTcRx-0002oU-Bs for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:01:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTcRs-0002nW-Kh for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:01:08 -0400 Original-Received: from [199.232.76.173] (port=42736 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTcRr-0002n2-Lh for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:01:03 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.243]:26925) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTcRr-0005AY-48 for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:01:03 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so418246rvb.6 for ; Thu, 14 Aug 2008 06:01:02 -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=bXjM5/FFfwlivQjuzNA9t67LbO0Tcd+0OQ/mpBoIsgs=; b=vUieeQ8r+BkRKmhuGQG/56fxJChRhh36FsD1Wbft+Nzeyht+gEQNSD8HEOHDW+fTj/ av4JzG/CvlR+2BlmR4u/I69UmfMURqHVZ8o5FfzTGYzjvAet7mUisAp7pnK8VVkSgVBH 8J0Z3hIQhemck3IaoUiE43ZQEN6po6kDs2tg4= 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=LW/Ve6j6Z1S4kiwnQ3I/fw7XS2ceAh5tISgy+8ctyyqLO/mLEc4n56xKRF6fTssQH6 3ROtduXbgpIN7fuEPIX5WTPYllw+7lx4IVACxC5wPZ3x0o1fHOdOPOH3u6IW2FMtuYQo loSBu4dSFOlkSG+YdqJVL+jcc5N1q7LNJkrV0= Original-Received: by 10.141.71.14 with SMTP id y14mr624682rvk.24.1218718862069; Thu, 14 Aug 2008 06:01:02 -0700 (PDT) Original-Received: by 10.140.170.16 with HTTP; Thu, 14 Aug 2008 06:01:02 -0700 (PDT) In-Reply-To: <874p5nwzri.fsf@kobe.laptop> 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:56616 Archived-At: On Thu, Aug 14, 2008 at 2:24 PM, Giorgos Keramidas wrote: > > You can probably write a short wrapper script that is used as $FCEDIT to > run the equivalent of: > > emacs --eval "(setq-default default-major-mode 'sh-mode)" file1 file2 ... > Hmm I don't why I need a wrapper script in that case, do you have an idea ? If I try without the wrapper I get: $ export FCEDIT="emacs -nw --eval \"(setq-default default-major-mode 'sh-mode)\"" $ fc ("emacs" "--eval" "\"(setq-default" "default-major-mode" "'sh-mode)\"" "/tmp/bash-fc-247955888988243") Loading encoded-kb...done Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/igrep-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done Loading easy-mmode...done Loading easymenu...done Loading cl-macs...done Loading paren...done .... command-line-1: End of file during parsing Loading cl-seq...done > That's a bit like "cheating", but it does work. yes. -- Francis