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