- Subject: [jed-users] Re: go and rust mode?
- From: Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 2 Sep 2026 12:26:26 +0200
On Tue 2026-09-01 (10:45), Ulli Horlacher wrote:
> On Mon 2026-08-31 (18:43), Morten Bo Johansen wrote:
>
> > I don't know of an existing go_mode, but I have created an editing mode for
> > the rust language, which you may find here:
> >
> > https://github.com/mortenivar/Jed-modes
>
> I have added rust.sl to my jed library directory.
> But how do I enable it?
>
> framstag@fex:/sw/share/jedlib-0.99-20_116/lib: ll rust.sl
> -rw-r--r-- framstag users 20,338 2026-09-01 10:35:08 rust.sl
>
> framstag@fex:/sw/share/jedlib-0.99-20_116/lib: grep rust defaults.sl
> add_mode_for_extension("rust","rs");
I added to defaults.sl:
autoload("rust_mode","rust");
but now:
framstag@fex:/tmp/fex_rust/src: jed -batch upload.rs
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/site.slc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/os.sl
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/menus.slc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/defaults.sl
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/emacs.slc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/edt.slc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/regexp.slc
loading /sw/ubuntu-22.04/slang-2.3.1-88/share/slsh/require.sl
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/srchmisc.slc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/misc.slc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/keys.sl
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/keydefs.slc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/vv.sl
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/jed.rc
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/colors/console.sl
loading /home/framstag/.jed/macros.sl
loading /home/framstag/.jed/config.sl
Reading /tmp/fex_rust/src/upload.rs
loading /sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/rust.sl
loading /sw/ubuntu-22.04/slang-2.3.1-88/share/slsh/pcre.sl
Error linking to pcre-module.so: pcre-module.so: cannot open shared object
file: No such file or directory
Traceback: import
/sw/ubuntu-22.04/slang-2.3.1-88/share/slsh/pcre.sl:7:<top-level>:Import Error
Traceback: evalfile
/sw/ubuntu-22.04/slang-2.3.1-88/share/slsh/require.sl:60:require:Import Error
Local variables for require:
String_Type feat = "pcre"
String_Type file = "pcre"
String_Type ns = ""
/sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/rust.sl:10:<top-level>:Import Error
***string***:1:<top-level>:Import Error
Traceback: called from eval: rust_mode
Traceback: eval
/sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/site.sl:1964:mode_hook:Import Error
Local variables for mode_hook:
String_Type ext = "rs"
Integer_Type n = 0
String_Type mode = "rust_mode"
String_Type base = "upload.rs"
Undefined_Type func = Undefined_Type
Error encountered while executing mode_hook
Traceback: find_file
/sw/ubuntu-24.04/jed-0.99-20_116/jed/lib/defaults.sl:357:command_line_hook:Import Error
Local variables for command_line_hook:
Integer_Type n = 0
Integer_Type i = 3
String_Type file = "/tmp/fex_rust/src/upload.rs"
Integer_Type depth = 0
Undefined_Type next_file = Undefined_Type
String_Type tmp = "load.rs"
String_Type init_file = "jed.rc"
Undefined_Type next_file_arg = Undefined_Type
Undefined_Type hookfun = Undefined_Type
Struct_Type s = Struct_Type with 12 fields
Error encountered while executing command_line_hook
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/
REF:<20260901084542.GA564210@xxxxxxxxxxxxxxxxxxxx>
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2026 date index]
[2026 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]