1 USING: definitions io.launcher kernel parser words sequences math
2 math.parser namespaces editors make system combinators.short-circuit ;
5 SYMBOL: emacsclient-path
7 HOOK: default-emacsclient os ( -- path )
9 M: object default-emacsclient ( -- path ) "emacsclient" ;
11 : emacsclient ( file line -- )
13 { [ \ emacsclient-path get ] [ default-emacsclient ] } 0|| ,
14 os windows? [ "--no-wait" , ] unless
15 number>string "+" prepend ,
17 ] { } make try-process ;
20 where first2 emacsclient ;
22 [ emacsclient ] edit-hook set-global