summaryrefslogtreecommitdiff
path: root/pcr/jdee/jdee.install
blob: 08b6501a4982d15f6db5e3becc9100ae0b3bcf96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# jdee.install
# Show Emacs configuration instructions.
# $Id: jdee.install,v 99d30c485449 2008/06/23 05:38:36 jbromley $
post_install () {
echo ""
echo "==> You may need to update your .emacs file. The following shows"
echo "==> the minimal configuration needed. Note that it shows what is"
echo "==> needed to configure JDEE's dependencies elib and cedet."
echo ""
echo "==> ;; This .emacs file illustrates the minimal setup"
echo "==> ;; required to run the JDE."
echo "==>"
echo "==> ;; Update the Emacs load-path to include the path to"
echo "==> ;; the JDE and its require packages. This code assumes"
echo "==> ;; that you have installed the packages in the emacs/site"
echo "==> ;; subdirectory of your home directory."
echo "==> (add-to-list 'load-path (expand-file-name \"~/emacs/site/jde/lisp\"))"
echo "==> (add-to-list 'load-path (expand-file-name \"~/emacs/site/cedet/common\"))"
echo "==> (add-to-list 'load-path (expand-file-name \"~/emacs/site/elib\"))"
echo "==>"
echo "==> ;; Initialize CEDET."
echo "==> (load-file (expand-file-name \"~/emacs/site/cedet/common/cedet.el\"))"
echo "==>"
echo "==>"
echo "==> ;; If you want Emacs to defer loading the JDE until you open a"
echo "==> ;; Java file, edit the following line"
echo "==> (setq defer-loading-jde nil)"
echo "==> ;; to read:"
echo "==> ;;"
echo "==> ;;  (setq defer-loading-jde t)"
echo "==> ;;"
echo "==>"
echo "==> (if defer-loading-jde"
echo "==>     (progn"
echo "==>       (autoload 'jde-mode \"jde\" \"JDE mode.\" t)"
echo "==>       (setq auto-mode-alist"
echo "==>           (append"
echo "==>            '((\"\\\\.java\\\\'\" . jde-mode))"
echo "==>            auto-mode-alist)))"
echo "==>   (require 'jde))"
echo ""
}

post_upgrade () {
        post_install $1
}

op=$1
shift
$op $*

# Local Variables:
# mode: shell-script
# End: