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
9 SYMBOL: emacsclient-args
11 HOOK: find-emacsclient os ( -- path )
13 M: object find-emacsclient ( -- path )
14 "emacsclient" ?find-in-path ;
16 M: windows find-emacsclient
18 [ { "Emacs" } "emacsclientw.exe" find-in-applications ]
19 [ { "Emacs" } "emacsclient.exe" find-in-applications ]
23 M: emacsclient editor-command ( file line -- command )
25 emacsclient-path get [ find-emacsclient ] unless* ,
26 emacsclient-args get %
29 number>string "+" prepend ,