1 USING: combinators.short-circuit editors io.standard-paths
2 kernel make math.parser namespaces sequences system vocabs ;
7 SYMBOL: emacsclient-path
8 SYMBOL: emacsclient-args
10 HOOK: find-emacsclient os ( -- path )
12 M: object find-emacsclient
13 "emacsclient" ?find-in-path ;
15 M: emacs editor-command
17 emacsclient-path get [ find-emacsclient ] unless* ,
18 emacsclient-args get [ { "-a=emacs" "--no-wait" } ] unless* %
19 number>string "+" prepend ,
23 os windows? [ "editors.emacs.windows" require ] when