Add autoloads for PKGBUILD and .zsh file
This commit is contained in:
parent
9792ca0a63
commit
798b7df54e
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue