help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to open a file in sh-mode


From: Lennart Borgman (gmail)
Subject: Re: How to open a file in sh-mode
Date: Thu, 14 Aug 2008 13:57:28 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Francis Moreau wrote:
On Thu, Aug 14, 2008 at 1:36 PM, Henrik Austad <henrikau@orakel.ntnu.no> 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

Maybe, but as I tried to say before: it is emacsclient, not emacs that you normally use to open files in Emacs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]