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