- Subject: [jed-users] Re: Start jed in certain mode
- From: Morten Bo Johansen <mbj@xxxxxxxxx>
- Date: Sun, 11 Jan 2026 13:53:07 +0100
Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx> wrote:
> Morten Bo Johansen <mbj@xxxxxxxxx> wrote:
>
> > jed <file> -f sh_mode
>
> Ah, ok ;-)
I think you are excused, because the manual page says that the syntax is
jed [--secure] [--batch|--script|--help] [options] file ...
i.e. the <file> argument comes last. In this case it doesn't. I attach
a patch against the manual page that maybe John would consider.
Btw, if you want more that just this very simple sh_mode that ships with
Jed, I have made one that also indents code, etc. and which is included in
my Github repository:
git clone https://github.com/mortenivar/Jed-modes.git
Regards,
Morten
--- src/jed/doc/manual/jed.1 2025-10-25 16:22:59.835358595 +0200
+++ src/jed/doc/manual/jed.1.new 2026-01-11 13:41:56.331086627 +0100
@@ -111,7 +111,9 @@
.I \-f 'function'
.RS
execute S\-Lang function named
-.I function
+.I function.
+Note that here the <file> argument must
+precede the option, e.g. jed <file> -f sh_mode.
.RE
.I \-s 'string'
.RS
[2026 date index]
[2026 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]