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