]> code.delx.au - gnu-emacs-elpa/blob - packages/ada-mode/README
56bf740e77d270f484ebdf6e2a0611f7b7709c02
[gnu-emacs-elpa] / packages / ada-mode / README
1 Emacs Ada mode version 5.1.5
2
3 Ada mode requires Emacs 24.2 or greater
4
5 See ada-mode.texi (or a compiled version) for help on using and
6 customizing Ada mode, upgrading from previous versions, and notes for
7 Ada mode developers.
8
9 Ada mode is provided as a Gnu ELPA package; to install the package,
10 add to ~./emacs:
11
12 (package-initialize)
13
14 then invoke M-x list-packages, install Ada mode.
15
16 Note that you must have the Emacs lisp sources installed; that's a
17 separate package in some distributions.
18
19 To install Ada mode, gpr mode, and associated utilities from this distribution:
20
21 Unzip to a convenient place (we will use ~/ada-mode in the following).
22
23 In a shell:
24 $ cd ~/ada-mode/build/wisi
25 $ byte-compile
26
27 Edit your ~/.emacs, add:
28
29 (add-to-list 'load-path (expand-file-name "~/ada-mode"))
30
31
32 Ada mode will be automatically loaded when you open a file with a
33 matching extension (default *.ads, *.adb).
34
35
36 By default ada-mode uses gnat find for cross-reference functions.
37 There is experimental support for an alternative, gnatinspect. You can
38 select that by adding:
39
40 (require 'gnat-inspect)
41
42 in your ~/.emacs, before anything that loads ada-mode
43
44 to build gnatinspect:
45 (gds-lynx-5)
46 cd ~/Projects
47 tar xf ~/Downloads/gnatcoll...
48 cd gnatcoll...
49 case:
50 when linux:
51 ./configure --prefix=/usr/gnat-7.1.2 --enable-gpl
52 when windows:
53 in cygwin bash, with gnat-7.1.2 in path:
54 ./configure --prefix=/Apps/GNAT-7.1.2 --enable-gpl
55 end case
56
57 make Gnatcoll_Build=Debug
58 sudo make Gnatcoll_Build=Debug install
59
60
61 gnatinspect references:
62 gnatcoll-1.6-src/docs/xref.rst
63 gnatcoll-1.6-src/src/tools/gnatinspect.adb
64
65 debugging gnatinspect:
66 verbosity in .gnatdebug:
67 -- Projects
68 -- ENTITIES.PARSING
69
70 (end of file)