updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / emacs-haxe / emacs-haxe.install
blob979167c923b12498e398472291a6a57370dae260
1 post_install() {
2     cat <<EOF
3 ==> Include something like this in your .emacs:
4      (require 'haxe-mode)
5      (defconst my-haxe-style
6        '("java" (c-offsets-alist . ((case-label . +)
7                                     (arglist-intro . +)
8                                     (arglist-cont-nonempty . 0)
9                                     (arglist-close . 0)
10                                     (cpp-macro . 0))))
11        "My haXe Programming Style")
12      (add-hook 'haxe-mode-hook
13        (function (lambda () (c-add-style "haxe" my-haxe-style t))))
14      (add-hook 'haxe-mode-hook
15                (function
16                 (lambda ()
17                   (setq tab-width 4)
18                   (setq indent-tabs-mode t)
19                   (setq fill-column 80)
20                   (local-set-key [(return)] 'newline-and-indent))))
21 EOF
24 post_upgrade() {
25   post_install $1
28 op=$1
29 shift
30 $op $*