make emacsw32 work on windows out of the box
parent
19acf89d82
commit
394ec538a1
|
@ -1,12 +1,18 @@
|
||||||
USING: definitions io.launcher kernel parser words sequences math
|
USING: definitions io.launcher kernel parser words sequences math
|
||||||
math.parser namespaces editors make system ;
|
math.parser namespaces editors make system combinators.short-circuit ;
|
||||||
IN: editors.emacs
|
IN: editors.emacs
|
||||||
|
|
||||||
|
SYMBOL: emacsclient-path
|
||||||
|
|
||||||
|
HOOK: default-emacsclient os ( -- path )
|
||||||
|
|
||||||
|
M: object default-emacsclient ( -- path ) "emacsclient" ;
|
||||||
|
|
||||||
: emacsclient ( file line -- )
|
: emacsclient ( file line -- )
|
||||||
[
|
[
|
||||||
\ emacsclient get "emacsclient" or ,
|
{ [ \ emacsclient-path get ] [ default-emacsclient ] } 0|| ,
|
||||||
os windows? [ "--no-wait" , ] unless
|
os windows? [ "--no-wait" , ] unless
|
||||||
"+" swap number>string append ,
|
number>string "+" prepend ,
|
||||||
,
|
,
|
||||||
] { } make try-process ;
|
] { } make try-process ;
|
||||||
|
|
||||||
|
@ -14,4 +20,3 @@ IN: editors.emacs
|
||||||
where first2 emacsclient ;
|
where first2 emacsclient ;
|
||||||
|
|
||||||
[ emacsclient ] edit-hook set-global
|
[ emacsclient ] edit-hook set-global
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Doug Coleman
|
|
@ -0,0 +1,9 @@
|
||||||
|
! Copyright (C) 2009 Doug Coleman.
|
||||||
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
|
USING: editors.emacs io.directories.search.windows kernel sequences
|
||||||
|
system ;
|
||||||
|
IN: editors.emacs.windows
|
||||||
|
|
||||||
|
M: windows default-emacsclient
|
||||||
|
"Emacs" t [ "emacsclient.exe" tail? ] find-in-program-files
|
||||||
|
"emacsclient.exe" or ;
|
Loading…
Reference in New Issue