diff options
Diffstat (limited to '')
-rw-r--r-- | emacs-prolog-mode (not maintaining)/emacs-prolog-mode.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/emacs-prolog-mode (not maintaining)/emacs-prolog-mode.install b/emacs-prolog-mode (not maintaining)/emacs-prolog-mode.install new file mode 100644 index 0000000..450b39e --- /dev/null +++ b/emacs-prolog-mode (not maintaining)/emacs-prolog-mode.install @@ -0,0 +1,19 @@ +post_install () { + cat << __EOF__ + +==> Insert into your ~/.emacs or ~/.xemacs/init.el the following lines: + +(autoload 'run-prolog "prolog" "Start a Prolog sub-process." t) +(autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t) +(autoload 'mercury-mode "prolog" "Major mode for editing Mercury programs." t) +(setq prolog-system 'swi) +(setq auto-mode-alist (append '(("\\.pl$" . prolog-mode) + ("\\.m$" . mercury-mode)) + auto-mode-alist)) + +__EOF__ +} + +post_upgrade () { + post_install +} |