GwtMuMaMo

The Google Web Toolkit (GWT) allows you to write client-side code for web applications in Java, which is translated to JavaScript by the GWT compiler. It is possible to write inline JavaScript via the JavaScript Native Interface (JSNI), and this mode uses MuMaMo from nXhtml to provide support for both Java and inline JavaScript in the same file.

Installation

In order to use gwt-mumamo, you will need nXhtml.

If your Emacs version is 23.1 or below, you will need espresso-mode. You also need to add an alias to it, add the following to your init file:

  (defalias 'js-mode 'espresso-mode)

Get gwt-mumamo.el, add it to your load path and add the following line to your init file:

  (autoload 'gwt-mumamo-mode "gwt-mumamo" "" t)

You can now activate gwt-mumamo by invoking gwt-mumamo-mode.

Nice. But espresso-mode is part of Emacs since version 23.2, see JavaScriptMode. Shouldn’t you link to that page instead and replace espresso-mode with js-mode?

You’re right, thanks. I’ve changed gwt-mumamo to use js-mode and added instructions on how to make it work with espresso-mode for Emacs <23.2 users.