comp.lang.ada
 help / color / mirror / Atom feed
From: Jeremy <j___c@cowgar.com>
Subject: Re: Ada Mode for Emacs
Date: Sun, 09 Jun 2002 02:34:49 GMT
Date: 2002-06-09T02:34:49+00:00	[thread overview]
Message-ID: <pan.2002.06.08.22.29.45.789120.21891@cowgar.com> (raw)
In-Reply-To: phxM8.3503$A62.600726@news11-gui.server.ntli.net

Your apt to start a war (or maybe I am) talking about editors, but
Emacs is the best for Ada!

You need to download the Ada mode for Emacs. It can be found at:

http://libre.act-europe.fr/

Once you have this, Emacs will do all the formatting for you,
perfectly! Places that you want to format with comments such as:

Put_Line ("Short"); -- Just demo
Put_Line ("Much longer than prev line"); -- Long

your right, tab will not indent. You will have to use your
space bar, but this is better because a space is always a space
no matter what your editor or platform, therefore your comments
will always align.

Once you get the mode, remove the Always Indent feature you
enabled and watch Emacs do what it's best at.

Jeremy

On Sat, 08 Jun 2002 20:26:39 -0400, chris.danx wrote:

> Hi,
> 
> I'm having a spot of bother with Emacs and since I don't know if it's
> ada mode specific I thought I'd ask here rather than gnu.emacs.help
> (there are ppl here who use emacs IIRC).  The problem is that when TAB
> is pressed it won't indent further than the previous line, and won't
> allow lines to be indented of my free will (indentations can be
> decreased but not increased).
> 
> I did some digging and found an option
> 
> Emacs->Editing->Indent->Tab Always Indent
> 
> which controls the global behaviour.  This is non-nil and works for
> non-Ada files.  I haven't tried editing files for other languages, so I
> don't know if this is Ada mode specific.  Does Ada mode override this
> setting, or is it a more general programming setting?  I've tried
> fiddling with the Ada mode settings a little, but to no avail.  Also
> looked through most of the customisation settings, but might have missed
> it.
> 
> This is most annoying since it doesn't allow information to be formatted
> in a neat way, comments in particular:
> 
> e.g.
> 
> -- author:        Bob
> -- date:          7th June 2002
> -- last modified: 7th June 2002
> 
> 
> The alternative emacs is currenlty imposing just looks silly.  Any
> ideas?
> 
> 
> Chris.



  reply	other threads:[~2002-06-09  2:34 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-09  0:26 Ada Mode for Emacs chris.danx
2002-06-09  2:34 ` Jeremy [this message]
2002-06-09  5:19   ` David Marceau
2002-06-09  7:08     ` [OT] " Pascal Obry
2002-06-09 10:35       ` Preben Randhol
2002-06-09 10:46         ` Pascal Obry
2002-06-09 16:35         ` Darren New
2002-06-09 23:54           ` Preben Randhol
2002-06-11  9:12     ` Frode Tenneboe
2002-06-11 11:54       ` John McCabe
2002-06-11 13:10         ` Adrian Hoe
2002-06-11 15:12           ` John McCabe
2002-06-11 18:25       ` Stephen Leake
2002-06-09 13:05   ` chris.danx
2002-06-09 17:13     ` Chad R. Meiners
2002-06-10 11:07       ` Adrian Hoe
2002-06-09 17:57     ` Simon Wright
2002-06-10  9:59       ` Emmanuel Briot
2002-06-10 11:09       ` Adrian Hoe
2002-06-09 11:08 ` Simon Wright
2002-06-09 11:43   ` Preben Randhol
2002-06-09 14:14     ` Pascal Obry
2002-06-09 22:42 ` Stephen Leake
2002-06-10  1:27   ` chris.danx
2002-06-10 12:52     ` Stephen Leake
2002-06-11  6:08     ` Adrian Hoe
2002-06-11 12:11       ` chris.danx
2002-06-11 13:17         ` Adrian Hoe
2002-06-11 14:06           ` chris.danx
2002-06-10 12:00   ` chris.danx
2002-06-10 15:02 ` Georg Bauhaus
  -- strict thread matches above, loose matches on Subject: below --
1993-09-08 22:19 Ada mode for emacs munck
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox