comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Aligning comments with Emacs ada-mode?
Date: Wed, 09 Aug 2006 14:16:07 +0200
Date: 2006-08-09T14:12:34+02:00	[thread overview]
Message-ID: <1155125767.18420.23.camel@localhost> (raw)
In-Reply-To: <1155124708.846173.71420@i3g2000cwc.googlegroups.com>

On Wed, 2006-08-09 at 04:58 -0700, randomm@mindless.com wrote:
> X-No-Archive: Yes
> 
> Hi Simon,
> 
> The documentation for set-comment-column is not on my system.

In this case you have a pretty unusual Emacs installation,
I'd say.

> What I'm looking for here is a way to override this value in my .emacs
> file.  I have the value set in Emacs now since I've changed the
> byte-compiled ada-mode (not the source).  But I want to be able to set
> it programatically.  Is this not possible?

I believe Simon's message explains it. I suggest you get ada-mode.el,
it's Free Software. If this won't be possible, you could start your
Ada source files with a line like
--    -*-mode: ada; comment-column: 42-*-

> 
> Thanks,
> Rand
> 
> Simon Wright wrote:
> > randomm@mindless.com writes:
> >
> > > Sorry, I'm not following you.  I tried (setq comment-column 60) and
> > > (setq-default comment-column 60) in my .emacs file but I didn't get
> > > them to work.  Are you suggesting meta-x set-comment-column?  What I'm
> > > looking for here is a programatic way to set the value so I don't have
> > > to issue commands.
> >
> > For help on set-comment-column type
> >
> >   C-h f s e t - c o m m e n t - c o l u m n
> >
> > (without the spaces)
> >
> > To change the default ada-mode comment column, you'll have to change
> > the source of ada-mode.el, as I think you did. Something on the lines
> > of changing
> >
> >   (set (make-local-variable 'comment-column) 40)
> >
> > to
> >
> >   (set (make-local-variable 'comment-column) 'ada-comment-column)
> > 
> > where you set ada-comment-column in your .emacs.
> 




  parent reply	other threads:[~2006-08-09 12:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1155049329.544472.142050@m73g2000cwd.googlegroups.com>
2006-08-08 15:21 ` Aligning comments with Emacs ada-mode? Benjamin Place
     [not found]   ` <1155065702.914125.58160@75g2000cwc.googlegroups.com>
2006-08-08 20:53     ` Georg Bauhaus
     [not found]       ` <1155070703.109913.164510@b28g2000cwb.googlegroups.com>
2006-08-08 22:02         ` Simon Wright
     [not found]           ` <1155124708.846173.71420@i3g2000cwc.googlegroups.com>
2006-08-09 12:16             ` Georg Bauhaus [this message]
2006-08-09 12:21             ` Emmanuel Briot
     [not found]               ` <1155129589.408465.191730@b28g2000cwb.googlegroups.com>
2006-08-09 20:03                 ` Steve Whalen
replies disabled

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