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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,76eec953100c8b18 X-Google-Attributes: gid103376,public From: Rolf Ebert Subject: Re: Xemacs and adamode for GNAT Ada95 (v3.07) Date: 1997/03/26 Message-ID: #1/1 X-Deja-AN: 228581355 References: <3338F1B7.2967@reading.ac.uk> Organization: Rolf Ebert from home Newsgroups: comp.lang.ada Date: 1997-03-26T00:00:00+00:00 List-Id: William Paul Berriss writes: > > Hi > > Some kind person, Matthew Daniel, helped me out by > suggesting the Xemacs editor and AdaMode for use with GNAT Ada95. > I now have Xemacs v19.14 and the adamode stuff from a GNAT site > all working, I just have to learn how to use it more fully. > > I notice coloured text is possible but I do not know how to > set up some syntactical colouring. > > Has anyone made a set-up file like the adamode files > that I could have > that produces some form of syntactical colouring for > keywords etc. > Any colouring rules will do, I just want to use some > form of colouring. > > If you have or know of such a file (may be a .el file?) > then could you let me know. > > Thanks in advance. > You said that you have the ada-mode from cs.nyu.edu. Then you have the full documentation of it, too. Switching on highlighting of syntactic structures is a little bit more tedious in XEmacs than in recent standard Emacs. Standard Emacs only needs one statement for all languages, whereas you have to switch it on for every language separately in XEmacs. Here is the code from the doc (to be put in your .emacs after requiring ada-mode): ;;;--------------------------------------------------------- ;;; settings to use font-lock.el ;;;--------------------------------------------------------- (if (ada-xemacs) (progn (add-hook 'ada-mode-hook 'turn-on-font-lock) (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock) (add-hook 'c-mode-hook 'turn-on-font-lock) (add-hook 'c++-mode-hook 'turn-on-font-lock) (add-hook 'makefile-mode-hook 'turn-on-font-lock) (add-hook 'compilation-mode-hook 'turn-on-font-lock) (add-hook 'gnus-mode-hook 'turn-on-font-lock) (add-hook 'rmail-mode-hook 'turn-on-font-lock) (add-hook 'LaTeX-mode-hook 'turn-on-font-lock) (add-hook 'BibTeX-mode-hook 'turn-on-font-lock) (add-hook 'TeXinfo-mode-hook 'turn-on-font-lock) (add-hook 'info-mode-hook 'turn-on-font-lock) (add-hook 'html-helper-mode-hook 'turn-on-font-lock) ) (global-font-lock-mode t)) Rolf ebert@waporo.muc.de