Merge pull request #320 from toctan/master

Add autoloads of major modes for PKGBUILD and .zshrc file
This commit is contained in:
Bozhidar Batsov 2013-05-19 02:40:10 -07:00
commit e1c4c129c0
2 changed files with 7 additions and 0 deletions

View file

@ -381,6 +381,9 @@ indent yanked text (with prefix arg don't indent)."
(add-hook 'after-save-hook
'executable-make-buffer-file-executable-if-script-p)
;; .zsh file is shell script too
(add-to-list 'auto-mode-alist '("\\.zsh\\'" . shell-script-mode))
;; whitespace-mode config
(require 'whitespace)
(setq whitespace-line-column 80) ;; limit line length

View file

@ -96,6 +96,7 @@ PACKAGE is installed only if not already present. The file is opened in MODE."
("\\.md\\'" markdown-mode markdown-mode)
("\\.ml\\'" tuareg tuareg-mode)
("\\.php\\'" php-mode php-mode)
("PKGBUILD\\'" pkgbuild-mode pkgbuild-mode)
("\\.sass\\'" sass-mode sass-mode)
("\\.scala\\'" scala-mode2 scala-mode)
("\\.scss\\'" scss-mode scss-mode)
@ -109,6 +110,9 @@ PACKAGE is installed only if not already present. The file is opened in MODE."
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)))
(when (package-installed-p 'pkgbuild-mode)
(add-to-list 'auto-mode-alist '("PKGBUILD\\'" . pkgbuild-mode)))
;; build auto-install mappings
(mapc
(lambda (entry)