summarylogtreecommitdiffstats
path: root/emacs-yaml-mode.install
blob: 74b4c1d41f21f025a3da789516e4cce78fd3d1ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install () {

cat << EOF

==> Add this code to your .emacs file to use the mode:

(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
==>  Unlike python-mode, this mode follows the Emacs convention of not
     binding the ENTER key to \`newline-and-indent'.  To get this
     behavior, add the key definition to \`yaml-mode-hook':

(add-hook 'yaml-mode-hook
      '(lambda ()
       (define-key yaml-mode-map "\C-m" 'newline-and-indent)))
EOF
}

post_upgrade () {
	post_install $1
}