]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/emacs/emacs.factor
Fix permission bits
[factor.git] / basis / editors / emacs / emacs.factor
1 USING: definitions io.launcher kernel parser words sequences math
2 math.parser namespaces editors make ;
3 IN: editors.emacs
4
5 : emacsclient ( file line -- )
6     [
7         "emacsclient" ,
8         "--no-wait" ,
9         "+" swap number>string append ,
10         ,
11     ] { } make try-process ;
12
13 : emacs ( word -- )
14     where first2 emacsclient ;
15
16 [ emacsclient ] edit-hook set-global
17