From 94d2fc1815a919734353c942f224db1de4b4fcb8 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 7 Mar 2011 09:04:49 +0100 Subject: Django, org * Added nxhtml, mostly for django support. * Changed some org settings. --- emacs.d/nxhtml/related/rhino.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 emacs.d/nxhtml/related/rhino.js (limited to 'emacs.d/nxhtml/related/rhino.js') diff --git a/emacs.d/nxhtml/related/rhino.js b/emacs.d/nxhtml/related/rhino.js new file mode 100644 index 0000000..efc50f0 --- /dev/null +++ b/emacs.d/nxhtml/related/rhino.js @@ -0,0 +1,14 @@ +// Where you store your files +var project_folder = 'file:///c:/emacs/p/091105/EmacsW32/nxhtml/related/'; +// Browser environment wrapper over Rhino +load(project_folder + 'env.js'); +// For DOM constructing +window.location = project_folder + 'blank.html'; +var my_script = arguments[0]; +// If DOM ready +window.onload = function(){ + // Avoid recursive inclusion + if ("rhino_flymake.js" != my_script) { + load(my_script); + } +} -- cgit v1.2.3-54-g00ecf