summarylogtreecommitdiffstats
path: root/emacs-apache-mode.install
blob: 5b59e6716411c82118c20010a032fc11dc262fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

post_install() {
  cat << EOF
==> Put this in your '~/.emacs' file to enable autoloading of apache-mode
==> and auto-recognition of "httpd.conf" files:

(autoload 'apache-mode "apache-mode.el" "Apache conf mode." t)
(setq auto-mode-alist (cons '("/httpd.conf$" . apache-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("^/etc/httpd/conf/.*\\.conf" . apache-mode) auto-mode-alist))

EOF
}

post_upgrade() {
  post_install $1
}