1 USING: combinators.short-circuit editors io.standard-paths
2 kernel make math.parser namespaces sequences system vocabs ;
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: emacs editor-command
19 emacsclient-path get [ find-emacsclient ] unless* ,
20 emacsclient-args get [ { "-a=emacs" "--no-wait" } ] unless* %
21 number>string "+" prepend ,
25 os windows? [ "editors.emacs.windows" require ] when