Harmonia
 Harmonia-Mode User's Guide Printer-Friendly Version  

Turning on Harmonia-Mode

In order to use Harmonia-Mode, it must be enabled for each file you edit. By default, Harmonia-Mode is enabled for all files it supports:

Extension Harmonia Language
.java Harmonia-Java-Mode
.c Harmonia-C-Mode
.h Harmonia-C-Mode
.scm Harmonia-Scheme-Mode
.cl Harmonia-Cool-Mode
.ti Harmonia-Titanium-Mode

You can tell whether or not Harmonia-Mode is enabled for a file you are editing in XEmacs by looking for the word "Harmonia-language" on the modeline (the bar at the bottom of the XEmacs window):

Harmonia-Mode can be enabled either automatically (based upon the file's extension), or on a manual, per-file basis.

Automatically Enabling Harmonia-Mode

Harmonia-Mode's customization system includes an option to automatically enable or disable Harmonia-Mode for files of specified extensions. For more information, see the customization documentation.

Manually Enabling Harmonia-Mode

To manually enable Harmonia in a file being edited, switch to the buffer containing the file and type M-x harmonia-language-mode.

Examples:

Command Enables Mode
M-x harmonia-java-mode Harmonia-Java-Mode
M-x harmonia-c-mode Harmonia-C-Mode
M-x harmonia-scheme-mode Harmonia-Scheme-Mode
M-x harmonia-cool-mode Harmonia-Cool-Mode
M-x harmonia-titanium-mode Harmonia-Titanium-Mode

Automatically Disabling Harmonia-Mode

The current version of Harmonia-Mode runs (really) slowly on large files. We respect a user-defined file size limit when deciding whether to enable Harmonia-Mode on a particular file. By default, the limit is 200,000 bytes. If Harmonia-Mode does not start up automatically, please check that your file is smaller than this limit. Otherwise, you can extend the limit by using Harmonia's customization feature.

Manually Disabling Harmonia-Mode

You can always change back to a standard XEmacs mode by typing M-x java-mode, M-x c-mode, M-x scheme-mode, etc. appropriately (there is no regular XEmacs Cool or XEmacs Titanium mode, but for these you can use M-x fundamental-mode).

Next Section: Language Analyses