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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c90221a2fda48a87,start X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Emacs and ada-mode -- Date: 1997/09/10 Message-ID: <3416C48A.E2B@gsfc.nasa.gov>#1/1 X-Deja-AN: 271332089 References: <34199647.23870183@news.geccs.gecm.com> Reply-To: Stephen.Leake@gsfc.nasa.gov Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1997-09-10T00:00:00+00:00 List-Id: Brian Orpin wrote: > > I am using the ada-mode.el. > > Is it possible to make emacs wrap a line at a certain column width and > add the comment string (--) at the start of the new line? Yes. This is a generic feature of emacs, not just ada-mode. You need to run "auto-fill-mode" to enable this. I bind it to a key, because I want to be able to enable and disable it. > I know I can > comment a region but can it do it interactively. Is it also possible for > emacs to adjust the comment if more is added so the line goes over the > prescribed width? With auto-fill on, when you hit space, the current line is wrapped. If you're editing in the middle of a comment paragraph, you'll want to run "fill-paragraph" when you're done (another key binding!) -- - Stephe