Back To Intro to XMMX Editor

Configuring XMMX

It's impossible to use XMMX without system-dependent configuration file. If Configuration file does not exist or is empty, or is unusable (has errors), then the only function avialable is ABORT (Ctrl+Alt+Shift+Esc keystroke) - exiting from editor without saving anything (this restores screen & keyboard to their normal state and says _exit(-1) ).


What is base-config file?

Base-config file contains the fillowing:


How to create base-config file?

mmm_cfg is utility for creating base-config file. During execution it asks some questions about keyboard layout and color map. I wrote 4 Russian keyboard layouts: Koi8, Alt, Iso and Windows.

You may specify config file name as command line parameter to mmm_cfg. In this case that file will be used.

If you run mmm_cfg without parameters, It'll look for mmm or home environment variable, and if it's defined, uses directory pointed by mmm or home as a location for mmm_base.cfg file. If mmm and home are undefined, it creates mmm_base.cfg file in current directory.

mmm_cfg generates file with default keyboard layout.


Where editor searches base-config file?

Linux console version

If home environment variable is defined, editor takes mmm_base.cfg from users home, otherwise it tries to open mmm_base.cfg file in the same directory as executable.

Linux X11 version

If home environment variable is defined, editor takes Xmmm_base.cfg from users home, otherwise it tries to open Xmmm_base.cfg file in the same directory as executable.

OS/2, DOS, Win32

If mmm environment variable is defined, editor takes mmm_base.cfg from directory pointed by mmm, otherwise it tries to open mmm_base.cfg file in the same directory as executable. If contents of mmm environment variable is incorrect, behaviour of XMMX is undefined.