summaryrefslogtreecommitdiff
path: root/pcr/emacs-tuareg-mode/emacs-tuareg-mode.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-11-13 16:36:26 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-11-13 16:36:26 -0200
commit8eba14b29abd2ce680d3dab6ba6f6cd0a6b5b918 (patch)
tree6f8599f56b8e678f80a534bdb3139ef57d69df32 /pcr/emacs-tuareg-mode/emacs-tuareg-mode.install
parent21ae83de97da28975c4ccf6208ed0454532852b5 (diff)
parente242c9f418786fb9d279119045d881aaec0a7ce4 (diff)
downloadabslibre-8eba14b29abd2ce680d3dab6ba6f6cd0a6b5b918.tar.gz
abslibre-8eba14b29abd2ce680d3dab6ba6f6cd0a6b5b918.tar.bz2
abslibre-8eba14b29abd2ce680d3dab6ba6f6cd0a6b5b918.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/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
+}