[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:36:44 +0200 |
On Thu, Aug 14, 2008 at 1:20 PM, Lennart Borgman (gmail)
<lennart.borgman@gmail.com> wrote:
> Francis Moreau wrote:
>>
>> 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
>
> Because you are doing it in the wrong order. sh-mode will apply to the
> current buffer. Try
>
> $emacs FOO -f sh-mode
>
> But ... - do you really want to do this? It means you are using a new eamcs
> instance for every file.
>
So you mean that I need to this:
$ cat > emacs-ui-is-dumb.sh<<EOF
#! /bin/sh
file=$1; shift
emacs "$@" $file
EOF
and do:
$ export FCEDIT="emacs-ui-is-dumb.sh"
--
Francis
- How to open a file in sh-mode, Francis Moreau, 2008/08/14
- Re: How to open a file in sh-mode, David Hansen, 2008/08/14
- Re: How to open a file in sh-mode, Francis Moreau, 2008/08/14
- Re: How to open a file in sh-mode, Peter Dyballa, 2008/08/14
- Re: How to open a file in sh-mode, Francis Moreau, 2008/08/14
- Re: How to open a file in sh-mode, Lennart Borgman (gmail), 2008/08/14
- Re: How to open a file in sh-mode,
Francis Moreau <=
- Re: How to open a file in sh-mode, Lennart Borgman (gmail), 2008/08/14
- Re: How to open a file in sh-mode, Peter Dyballa, 2008/08/14
- Re: How to open a file in sh-mode, Francis Moreau, 2008/08/14
Re: How to open a file in sh-mode, Henrik Austad, 2008/08/14
- Re: How to open a file in sh-mode, Francis Moreau, 2008/08/14
- Re: How to open a file in sh-mode, Henrik Austad, 2008/08/14
- Re: How to open a file in sh-mode, Francis Moreau, 2008/08/14
- Re: How to open a file in sh-mode, David Hansen, 2008/08/14
- Re: How to open a file in sh-mode, Henrik Austad, 2008/08/14
- Re: How to open a file in sh-mode, Francis Moreau, 2008/08/14