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 15:48:57 +0200

On Thu, Aug 14, 2008 at 3:27 PM, Giorgos Keramidas
<keramida@ceid.upatras.gr> wrote:
> On Thu, 14 Aug 2008 15:01:02 +0200, "Francis Moreau" <francis.moro@gmail.com> 
> wrote:
>> On Thu, Aug 14, 2008 at 2:24 PM, Giorgos Keramidas
>> <keramida@ceid.upatras.gr> 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 is started but I get an error in the Messages window>
>>
>> ("emacs" "--eval" "\"(setq-default" "default-major-mode" "'sh-mode)\""
>> "/tmp/bash-fc-247955888988243")
>
> See how the command-line arguments have been split in multiple places by
> the shell that evaluated $FCEDIT?
>

hmm not really.

Could you tell me what's wrong here ? IOW how emacs have been launched ?

thanks
-- 
Francis




reply via email to

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