1 USING: definitions io.launcher kernel parser words sequences math
2 math.parser namespaces editors make system combinators.short-circuit
6 SYMBOL: emacsclient-path
8 HOOK: default-emacsclient os ( -- path )
10 M: object default-emacsclient ( -- path ) "emacsclient" ;
12 : emacsclient ( file line -- )
14 { [ \ emacsclient-path get ] [ default-emacsclient ] } 0|| ,
16 number>string "+" prepend ,
19 os windows? [ run-detached drop ] [ try-process ] if ;
22 where first2 emacsclient ;
24 [ emacsclient ] edit-hook set-global