- Subject: [jed-users] Re: Start jed in certain mode
- From: Morten Bo Johansen <mbj@xxxxxxxxx>
- Date: Sun, 11 Jan 2026 13:09:33 +0100
jed <file> -f sh_mode
Regards,
Morten
Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx> wrote:
> Hello,
>
> I want to set a certain mode when calling jed.
>
> Let's say, jed would open a file in Text-Mode, but I want jed to open
> it in SH-Mode.
>
> I know I could edit .jedrc oder set the mode within jed. But I want to
> set the mode on the command-line when calling jed.
>
> I didn't find an exact description in the documentation, so I tried:
>
> jed -l shmode.sl <file>
> ==> opens file in Text-Mode
>
> jed -l /usr/share/jed/lib/shmode.sl <file>
> ==> opens file in Text-Mode
>
> jed -f sh_mode <file>
> ==> opens file in Text-Mode
>
> jed -f set_mode sh_mode <file>
> ==> throws error: Stack Underflow Error
>
> jed -f set_mode(sh_mode,2) <file>
> ==> throws error: syntax error near unexpected token `('
>
> Hm. Is there a way to do what I want?
>
> Thanks, Martin
> _______________________________________________
> For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
>
--
Morten Bo Johansen
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2026 date index]
[2026 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]