Contents

Editors

This page provides some details about editing Object Icon source code with particular editors.

Emacs

The “misc” directory contains some elisp source files which provide an Object Icon mode. There are two relevant files. The first is “objecticon-mode.el” provides the mode itself, and should be placed somewhere on your emacs “load-path”. The second, “objecticon-setup.el”, just provides sets a few useful file associations and other variables. Its contents can be copied into your emacs init file, or it can also be placed on the load path and loaded as follows :-

(require 'objecticon-setup)

To customize the mode, a hook function can be added. For example, the following can be added to your init file after the above line :-

(add-hook 'objecticon-mode-hook 
          '(lambda ()
             (setq objecticon-indent-level 3)
             (setq objecticon-continued-statement-offset objecticon-indent-level)
             (setq objecticon-class-indent-level objecticon-indent-level)
             (setq objecticon-brace-offset (- objecticon-indent-level))
             (setq objecticon-indent-use-only-spaces t)))

Please refer to the mode source file for a full list of configuration variables which can be set.

Tag files

The Makedefs file (created during configuration in the root distribution directory), contains a definition ICNTAGS, which can be used with the etags program to create an emacs tags file from Object Icon source code. For example :-

        etacs -o TAGS $(ICNTAGS) $(SOURCEFILES)

This definition is used with by the top-level make target “etags”, to create a tags file of all the source code in the distribution.

geany, gedit, jed, mc, micro, vim

Jason Martin has kindly contributed syntax files for editing Object Icon source code with the above editors.

The latest version of Jason’s work can be found here :-

https://github.com/agrellum/Object-Icon-Syntax-Files

Editpad

Kim Bastin has kindly contributed a syntax colouring scheme for Editpad, a Windows text editor (see https://www.editpadpro.com/index.html).

Kim’s scheme can be found via this page: https://www.editpadpro.com/cgi-bin/cscslist5.pl.

Contents