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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ada-mode failing at formatting still Date: Mon, 21 May 2018 08:11:42 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: h2725194.stratoserver.net; posting-host="36c50ea74cc9f27847d0e9609d64d90e"; logging-data="25690"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/c6y2EQX+KOq64WblsjQ7J8NYM0ytj8vY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:9t7S6ptPEEgoT102ml05DliPzyA= sha1:FlxtEG44XbU8KTGb5sf92JJkt38= Xref: reader02.eternal-september.org comp.lang.ada:52531 Date: 2018-05-21T08:11:42+01:00 List-Id: Lucretia writes: > Do you know how to stop it auto casing keywords? > > I have this in my .emacs file: > > (defun my-ada-mode-hook () > (setq ada-case-keyword lower-case) > (setq ada-label-indent 0)) > > But neither are working. Which Emacs & ada-mode versions are you using? I have Emacs 25.3.1, ada-mode 5.3.1 (via elpa). Best to use customize. With point in an Ada buffer, (menu) Ada>Customize. The casing defaults are, from ada-mode.el, ada-auto-case t (automatically change case of preceding word while typing) ada-case-keyword 'lower-case ada-case-identifier 'mixed-case (actually Title_Case) ada-case-strict t (allow CamelCase; if nil, -> Camelcase) ------------------------------------------------------------------------ Down at the bottom of the Ada group customization page, there are links to the Build and Indentation customization groups.