factor/contrib/emacs.factor

15 lines
301 B
Factor
Raw Normal View History

REQUIRES: process ;
2006-08-25 00:07:54 -04:00
USING: definitions kernel parser words sequences math process ;
IN: emacs
: emacsclient ( file line -- )
number>string "emacsclient --no-wait +" swap append " " rot append3 system ;
: emacs ( word -- )
2006-08-25 00:07:54 -04:00
where first2 emacsclient ;
[ emacsclient ] edit-hook set
PROVIDE: emacs ;