]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/editors/emacs/emacs.factor
Split off windows specifics. Find path in registry first.
[factor.git] / basis / editors / emacs / emacs.factor
index f1b12b6211629af9cb57a87c415d7785ebdd892b..9ce457a43a11f5d6eb5fe531f2a2093f5cbbcb83 100644 (file)
@@ -1,5 +1,5 @@
 USING: combinators.short-circuit editors io.standard-paths
-kernel make math.parser namespaces sequences system ;
+kernel make math.parser namespaces sequences system vocabs ;
 IN: editors.emacs
 
 SINGLETON: emacs
@@ -14,13 +14,6 @@ HOOK: find-emacsclient os ( -- path )
 M: object find-emacsclient
     "emacsclient" ?find-in-path ;
 
-M: windows find-emacsclient
-    {
-        [ { "Emacs" } "emacsclientw.exe" find-in-applications ]
-        [ { "Emacs" } "emacsclient.exe" find-in-applications ]
-        [ "emacsclient.exe" ]
-    } 0|| ;
-
 M: emacs editor-command
     [
         emacsclient-path get [ find-emacsclient ] unless* ,
@@ -28,3 +21,5 @@ M: emacs editor-command
         number>string "+" prepend ,
         ,
     ] { } make ;
+
+os windows? [ "editors.emacs.windows" require ] when
\ No newline at end of file