[Emacs-ada-mode] ada-mode-keys

Stephen Leake stephen_leake at stephe-leake.org
Sun Nov 18 15:33:59 PST 2007


Alexy Khrabrov <deliverable at gmail.com> writes:

> Looks like in order to get all extra packages additional to the ada- 
> mode, one just needs to (require 'ada-mode-keys).  

Yes, that's the way I use it. Actually, I do this;

(eval-after-load "ada-mode" '(load "ada-mode-keys"))

That way, ada-mode isn't loaded if I'm just reading email.

> Reading it I see it says it fixes various things -- such as ada-xref
> hook, etc. 

"fixes" here means "make it work the way _I_ want to". It's not
necessarily "broken" in the official distribution.

But if enough people request it, and no one objects, we can change the
official distribution.

I just haven't had the energy to start the discussion yet.

> But ada-mode and ada-mode-keys are by (the same) Stephe! :) So is it
> supposed to fix things from a standard ad-mode.elc coming with an
> existing Emacs setup? And if I want stuff from it on top of the
> latest ada-mode from Stephe, do I need to change anything or can
> just go ahead and require 'it? 

It will always work for me, but it may depend on other things (like
Else) I have installed.

> Also -- where should I drop the Ada.lse template, and do we need
> Ada-cust.lse template? 

I have them in the same directory as ada-mode-keys.el. I don't
remember what the requirements are; probably somewhere on load-path.

Ada-cust.lse "fixes" some things to be the way _I_ like them :).

> Looks like both have to be renamed to lose the 95, too.

I haven't had that problem; I'm not sure why. Something should say
2005, somewhere :).

The templates for Ada 83 and Ada 95 should be distinct, since there
are differences. Ada 2005 should be distinct yet again. But I'm not
sure if you can share most of them easily. 

I haven't tried to add the Ada 2005 stuff to Else yet; it hasn't been
an issue for me.

-- 
-- Stephe



More information about the Emacs-ada-mode mailing list