factor/basis/editors/gedit/gedit.factor

19 lines
444 B
Factor
Raw Normal View History

2009-04-18 02:43:40 -04:00
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: editors io.launcher kernel make math.parser namespaces
sequences ;
IN: editors.gedit
SINGLETON: gedit
gedit editor-class set-global
2009-04-18 02:43:40 -04:00
: gedit-path ( -- path )
\ gedit-path get-global [
"gedit"
] unless* ;
M: gedit editor-command ( file line -- command )
2009-04-18 02:43:40 -04:00
[
gedit-path , number>string "+" prepend , ,
] { } make ;