Chapter 4. Configuration

Table of Contents
Main Configuration
Language Configuration

Main Configuration

The whole autogenerated configuration is stored in $HOME/.cuterc. This is a python file where special varibles of the built-in python interpreter of CUTE are set. It is possible to modify this file manually, but do only set predefined variables and run this file within CUTE otherwise all changes will be lost. All config variables are defined in python modules. There are 4 module: general, edit, view and lang. The .cuterc file will execute a cute.pre_config file in the home directory of the user before any options are set. After setting all options, .cuterc will execute cute.post_config.

The user configuration should be placed in cute.pre_config or cute.post_config. In cute.pre_config are definitions of new commands, which are configured in .cuterc.

Language Configuration

Each language has its own python module and each module has its own file in $HOME/.cute/langs/. For example, the C++ settings are defined in $HOME/.cute/langs/cpp.py. In a language module are several properties defined. A property is a python class, which stores the foreground and background color, font, size, whether end of line is filled with background color, whether font is bold, underline or italic. In addition there are several variables for comments defined: blockCommentStart, streamCommentStart and streamCommentEnd, which are used for the “Block Un/Comment” and “Stream Comment” edit command.