From 6e840831b6e344b3ee3582c3bb7a76cf171825ab Mon Sep 17 00:00:00 2001 From: Marije Baalman Date: Sat, 14 Nov 2009 20:22:31 +0000 Subject: [PATCH] moving some things from platform specific to ide specific for emacs-scel git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9517 a380766d-ff14-0410-b294-a243070f3f08 --- sc/Emacs.sc | 1 + sc/extPlatform.sc | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 sc/extPlatform.sc diff --git a/sc/Emacs.sc b/sc/Emacs.sc index 4d126e1..d05ace9 100644 --- a/sc/Emacs.sc +++ b/sc/Emacs.sc @@ -222,6 +222,7 @@ Emacs { }{ initialized = true; Document.implementationClass = ScelDocument; + StartUp.add( { Document.implementationClass.startup; } ); thisProcess.platform.declareFeature( \emacs ); outStream = CollStream.on(String.new); outFile = File(outFileName, "w"); diff --git a/sc/extPlatform.sc b/sc/extPlatform.sc new file mode 100644 index 0000000..bd9cd18 --- /dev/null +++ b/sc/extPlatform.sc @@ -0,0 +1,7 @@ ++ Platform { + recompile{ + if ( this.hasFeature( \emacs ) ) { + Emacs.evalLispExpression( "(sclang-start)" ); + }; + } +} \ No newline at end of file