1 USING: combinators.short-circuit editors io.standard-paths
2 kernel make math.parser namespaces sequences system ;
7 editor-class [ emacs ] initialize
9 SYMBOL: emacsclient-path
10 SYMBOL: emacsclient-args
12 HOOK: find-emacsclient os ( -- path )
14 M: object find-emacsclient
15 "emacsclient" ?find-in-path ;
17 M: windows find-emacsclient
19 [ { "Emacs" } "emacsclientw.exe" find-in-applications ]
20 [ { "Emacs" } "emacsclient.exe" find-in-applications ]
24 M: emacs editor-command
26 emacsclient-path get [ find-emacsclient ] unless* ,
27 emacsclient-args get [ { "-a=emacs" "--no-wait" } ] unless* %
28 number>string "+" prepend ,