2008-12-08 21:11:24 -05:00
|
|
|
USING: editors io.files io.launcher kernel math.parser
|
2008-12-15 22:45:18 -05:00
|
|
|
namespaces sequences windows.shell32 make
|
|
|
|
io.directories.search.windows ;
|
2007-12-04 00:31:03 -05:00
|
|
|
IN: editors.emeditor
|
|
|
|
|
2007-12-09 11:56:47 -05:00
|
|
|
: emeditor-path ( -- path )
|
|
|
|
\ emeditor-path get-global [
|
2009-02-26 22:50:20 -05:00
|
|
|
"EmEditor" [ "EmEditor.exe" tail? ] find-in-program-files
|
2009-01-16 15:13:17 -05:00
|
|
|
[ "EmEditor.exe" ] unless*
|
2007-12-09 11:56:47 -05:00
|
|
|
] unless* ;
|
|
|
|
|
2007-12-04 00:31:03 -05:00
|
|
|
: emeditor ( file line -- )
|
|
|
|
[
|
2008-01-24 02:50:40 -05:00
|
|
|
emeditor-path , "/l" , number>string , ,
|
|
|
|
] { } make run-detached drop ;
|
2007-12-04 00:31:03 -05:00
|
|
|
|
|
|
|
[ emeditor ] edit-hook set-global
|