factor/basis/editors/emeditor/emeditor.factor

18 lines
435 B
Factor

USING: editors io.standard-paths kernel make math.parser
namespaces ;
IN: editors.emeditor
SINGLETON: emeditor
emeditor editor-class set-global
: emeditor-path ( -- path )
\ emeditor-path get [
{ "EmEditor" } "emeditor.exe" find-in-applications
[ "EmEditor.exe" ] unless*
] unless* ;
M: emeditor editor-command ( file line -- command )
[
emeditor-path , "/l" , number>string , ,
] { } make ;