1 USING: editors io.files io.launcher kernel math.parser
2 namespaces sequences windows.shell32 make
3 io.directories.search.windows ;
6 : emeditor-path ( -- path )
7 \ emeditor-path get-global [
8 "EmEditor" t [ "EmEditor.exe" tail? ] find-in-program-files
9 [ "EmEditor.exe" ] unless*
12 : emeditor ( file line -- )
14 emeditor-path , "/l" , number>string , ,
15 ] { } make run-detached drop ;
17 [ emeditor ] edit-hook set-global