summaryrefslogtreecommitdiff
path: root/pcr/emacs-tuareg-mode/emacs-tuareg-mode.install
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-11-13 13:34:54 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-11-13 13:34:54 -0300
commit359b99f193cb2c3b0ea7cad66080c1e81125afb1 (patch)
treee03f36b1af48bbcdcfe662695cd60d905253786a /pcr/emacs-tuareg-mode/emacs-tuareg-mode.install
parentb669c4d23e5797b4bfdd78908fa162caf202ad6f (diff)
parentcf319581703bfe2836e7df909dd5f9c0ab0d54e5 (diff)
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'pcr/emacs-tuareg-mode/emacs-tuareg-mode.install')
-rw-r--r--pcr/emacs-tuareg-mode/emacs-tuareg-mode.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/pcr/emacs-tuareg-mode/emacs-tuareg-mode.install b/pcr/emacs-tuareg-mode/emacs-tuareg-mode.install
new file mode 100644
index 000000000..f9ee9c970
--- /dev/null
+++ b/pcr/emacs-tuareg-mode/emacs-tuareg-mode.install
@@ -0,0 +1,17 @@
+post_install() {
+ cat <<__EOF__
+==> Put this in your $HOME/.emacs file to enable tuareg-mode autoloading
+==> and autorecognition of ocaml source files:
+
+ (setq auto-mode-alist (cons '("\\\\.ml[iylp]?\\\\'" . tuareg-mode) auto-mode-alist))
+ (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
+ (autoload 'ocamldebug "ocamldebug" "Run the Caml debugger" t)
+
+==> Note to users of previous versions: 'camldebug' is now known as 'ocamldebug'
+__EOF__
+}
+
+
+post_upgrade() {
+ post_install
+}