Installation rapide du mode Emacs "Tuareg" pour Caml
Le mode Emacs "Tuareg" est très pratique pour éditer du code
Caml (Objective Caml, Caml-light, ...) sous Emacs.
Voici un script d'installation automatisée de ce mode Tuareg :
sh
cd
V="tuareg-mode-1.45.3"
F="${V}.tar.gz"
curl http://www-rocq.inria.fr/~acohen/tuareg/mode/"${F}" -o "${F}"
rm -fr .tuareg
if [ -f "${F}" ] ; then
tar xvzf "${F}"
mv "${V}" .tuareg
cat >> .emacs <<EOF
;;;;;DEBUT installation automatisée de tuareg
(setq load-path (cons "~/.tuareg/" load-path))
(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
;;;;;FIN installation automatisée de tuareg
EOF
fi
2007-10-14