diff options
Diffstat (limited to 'emacs-haxe.install')
-rw-r--r-- | emacs-haxe.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/emacs-haxe.install b/emacs-haxe.install new file mode 100644 index 000000000000..979167c923b1 --- /dev/null +++ b/emacs-haxe.install @@ -0,0 +1,30 @@ +post_install() { + cat <<EOF +==> Include something like this in your .emacs: + (require 'haxe-mode) + (defconst my-haxe-style + '("java" (c-offsets-alist . ((case-label . +) + (arglist-intro . +) + (arglist-cont-nonempty . 0) + (arglist-close . 0) + (cpp-macro . 0)))) + "My haXe Programming Style") + (add-hook 'haxe-mode-hook + (function (lambda () (c-add-style "haxe" my-haxe-style t)))) + (add-hook 'haxe-mode-hook + (function + (lambda () + (setq tab-width 4) + (setq indent-tabs-mode t) + (setq fill-column 80) + (local-set-key [(return)] 'newline-and-indent)))) +EOF +} + +post_upgrade() { + post_install $1 +} + +op=$1 +shift +$op $* |