Factor/Emacs integration via emacsclient and emacs word

wayo.cavazos 2006-08-16 08:45:59 +00:00
parent 06a4af7c00
commit ca12a9dd9c
1 changed files with 14 additions and 0 deletions

14
contrib/emacs.factor Normal file
View File

@ -0,0 +1,14 @@
REQUIRES: process ;
USING: kernel parser words sequences math process ;
IN: emacs
: emacsclient ( file line -- )
number>string "emacsclient --no-wait +" swap append " " rot append3 system ;
: emacs ( word -- )
dup word-file swap "line" word-prop emacsclient ;
PROVIDE: emacs ;