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!news3.google.com!news.glorb.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Aligning comments with Emacs ada-mode? Date: Tue, 08 Aug 2006 23:02:39 +0100 Organization: Pushface Message-ID: References: <1155049329.544472.142050@m73g2000cwd.googlegroups.com> <1155065702.914125.58160@75g2000cwc.googlegroups.com> <1155070434.9069.40.camel@localhost> <1155070703.109913.164510@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1155074559 3683 62.49.19.209 (8 Aug 2006 22:02:39 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 8 Aug 2006 22:02:39 +0000 (UTC) Cancel-Lock: sha1:vrAldqjvgS2ktfFXmq5rlA2tSt4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:6091 Date: 2006-08-08T23:02:39+01:00 List-Id: 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.