aboutsummaryrefslogtreecommitdiffstats
path: root/emacs-prolog-mode (not maintaining)/emacs-prolog-mode.install
blob: 450b39e7d1d04602d0e689eb107acd1068624f77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}