Georg Bauhaus <[email protected]> writes:

> Hi,
>
> a style of letter case in identifiers of which I was just now
> reminded (by Randy Brukardt mentioning them on c.l.ada) and
> that I had seen before in different sources looks like this:
>
>   No_of_Electrons
>   King_of_Norway
>   Bits_and_Pieces
>
> I like it, so I made an initial draft version of ada-mode.el that
> handles "of" etc. as part of auto casing. Since the set of words
> appearing in small letters differs per natural language, and
> in any case is subjective or a project's choice, this warrants
> customization.

Did you try just using the existing case exceptions mechanism? That
should work.

Just define 'of', 'and', etc as partial case exceptions.

You can use the menu to do that one by one, or edit the case exception
file directly.

The current case exception mechanism supports multiple exception files,
mainly for nested projects. 

Which also means you can have a standard file containing Tile_Case exceptions,
and include that in every project (each project can specify more than
one exception file).

> There is nothing yet in terms of file locality of the variables
> set up for customize, although I don't see any that would prevent
> this.

I have on occasion felt the need for file-local exceptions; that might
not be hard to add (just another list in the exceptions meta-list).

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to