# CompanyProfiles(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## COMPANY PROFILES

This section describes how a company profile should be incorporated into MicroEmacs 2009. A company profile defines a set of extensions to MicroEmacs which encapsulate settings which are used on a company wide basis. This type of configuration is typically used with a networked (shared) installation. The company profile would typically include:-

- Name of the company.
- Standard header files including company copyright statements.
- Standard file layouts
- Company defined language extensions.

## Location Of The Company Information

It is suggested that all of the company extensions applied to MicroEmacs 2009 are performed in a separate directory location which shadows the MicroEmacs standard macro file directory. This enables the original files to be sourced if a user does not want to include the company files. This method also allows MicroEmacs to be updated in the future, whilst retaining the company files.

The company files are generally placed in the `company` sub-directory described in the installation notes.

## Content Of The Company Information

Company macro file

The company file is typically called by the company name (i.e. `jasspa.emf`) create a new company file. The file includes your company name and hook functions for any new file types that have been defined for the company, an example company file for Jasspa might be defined as:-

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;
    ;  Author        : Jasspa
    ;  Created       : Thu Jul 24 09:44:49 1997
    ;  Last Modified : <090829.1633>
    ;
    ;  Description     Extensions for Jasspa
    ;
    ;  Notes
    ;
    ;  History
    ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Define the name of the company.
    set-variable %company-name "Jasspa"
    ; Add Jasspa specific file hooks
    ; Make-up foo file hook
    add-file-hook ".foo"    fhook-foo
    1 add-file-hook "-!-[ \t]*foobar.*-!-" fhook-foo ; -!- foobar -!-
    ; Override the make with localised build command
    set-variable %compile-com "build"

The file contains company specific file hooks and the name of the company.

Other Company Files

Files defined on behalf of the company are included in the company directory. These would include:-

- Template header files etf(8).
- Hook file definitions (hk XXX.emf) for company specific files, see add-file-hook(2).
- Extensions to the standard hook definitions (my XXX.emf) for company specific language extensions to the standard hook files. See File Hooks and File Language Templates.

## SEE ALSO

$MEINSTALLPATH(5), $MENAME(5), $MEPATH(5), File Hooks, File Language Templates, Installation, user-setup(3), User Profiles.

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>