1 USING: combinators.short-circuit editors io.standard-paths
2 kernel make math.parser namespaces sequences system ;
6 emacsclient editor-class set-global
8 SYMBOL: emacsclient-path
10 HOOK: find-emacsclient os ( -- path )
12 M: object find-emacsclient ( -- path )
13 "emacsclient" ?find-in-path ;
15 M: windows find-emacsclient
17 [ { "Emacs" } "emacsclientw.exe" find-in-applications ]
18 [ { "Emacs" } "emacsclient.exe" find-in-applications ]
22 M: emacsclient editor-command ( file line -- command )
24 emacsclient-path get [ find-emacsclient ] unless* ,
27 number>string "+" prepend ,