scaffold-emacs should use application-data directory on windows
parent
4038d30e7e
commit
939c2fa64e
|
@ -298,9 +298,12 @@ SYMBOL: examples-flag
|
|||
"}" print
|
||||
] with-variable ;
|
||||
|
||||
: touch. ( path -- )
|
||||
[ touch-file ]
|
||||
[ "Click to edit: " write <pathname> . ] bi ;
|
||||
|
||||
: scaffold-rc ( path -- )
|
||||
[ home ] dip append-path
|
||||
[ touch-file ] [ "Click to edit: " write <pathname> . ] bi ;
|
||||
[ home ] dip append-path touch. ;
|
||||
|
||||
: scaffold-factor-boot-rc ( -- )
|
||||
os windows? "factor-boot-rc" ".factor-boot-rc" ? scaffold-rc ;
|
||||
|
@ -308,4 +311,7 @@ SYMBOL: examples-flag
|
|||
: scaffold-factor-rc ( -- )
|
||||
os windows? "factor-rc" ".factor-rc" ? scaffold-rc ;
|
||||
|
||||
: scaffold-emacs ( -- ) ".emacs" scaffold-rc ;
|
||||
|
||||
HOOK: scaffold-emacs os ( -- )
|
||||
|
||||
M: unix scaffold-emacs ( -- ) ".emacs" scaffold-rc ;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Doug Coleman
|
|
@ -0,0 +1,7 @@
|
|||
! Copyright (C) 2009 Doug Coleman.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: io.pathnames system tools.scaffold windows.shell32 ;
|
||||
IN: tools.scaffold.windows
|
||||
|
||||
M: windows scaffold-emacs ( -- )
|
||||
application-data ".emacs" append-path touch. ;
|
Loading…
Reference in New Issue