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: Francis Moreau
Subject: Re: How to open a file in sh-mode
Date: Thu, 14 Aug 2008 13:02:50 +0200

On Thu, Aug 14, 2008 at 12:58 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 14.08.2008 um 11:04 schrieb Francis Moreau:
>
>>> Put "#!/bin/sh" or "# -*- mode: sh; -*-" in the first line of the file.
>>>
>>
>> As I previously replied I can't.
>
>
> You could set up auto-mode-alist to use a particular mode (Shell-script
> mode) for a particular type of file name ...
>

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

thanks
-- 
Francis




reply via email to

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