From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c2319f510cab87af X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.germany.com!newsfeed.freenet.de!newsfeed.icl.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Aligning comments with Emacs ada-mode? From: Georg Bauhaus In-Reply-To: <1155124708.846173.71420@i3g2000cwc.googlegroups.com> References: <1155049329.544472.142050@m73g2000cwd.googlegroups.com> <1155065702.914125.58160@75g2000cwc.googlegroups.com> <1155070434.9069.40.camel@localhost> <1155070703.109913.164510@b28g2000cwb.googlegroups.com> <1155124708.846173.71420@i3g2000cwc.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-Id: <1155125767.18420.23.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Wed, 09 Aug 2006 14:16:07 +0200 NNTP-Posting-Date: 09 Aug 2006 14:12:34 CEST NNTP-Posting-Host: aeabee2d.newsspool1.arcor-online.net X-Trace: DXC=1gPa5ADG`F[cHPTNZh_e7Qic==]BZ:af^4Fo<]lROoRQ8kF:=P9Ihe`BX9B^aD4@ESkRR9boY;9DVC] X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6104 Date: 2006-08-09T14:12:34+02:00 List-Id: 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. >