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
|
(add-hook 'after-save-hook
|
||||||
'executable-make-buffer-file-executable-if-script-p)
|
'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
|
;; whitespace-mode config
|
||||||
(require 'whitespace)
|
(require 'whitespace)
|
||||||
(setq whitespace-line-column 80) ;; limit line length
|
(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)
|
("\\.md\\'" markdown-mode markdown-mode)
|
||||||
("\\.ml\\'" tuareg tuareg-mode)
|
("\\.ml\\'" tuareg tuareg-mode)
|
||||||
("\\.php\\'" php-mode php-mode)
|
("\\.php\\'" php-mode php-mode)
|
||||||
|
("PKGBUILD\\'" pkgbuild-mode pkgbuild-mode)
|
||||||
("\\.sass\\'" sass-mode sass-mode)
|
("\\.sass\\'" sass-mode sass-mode)
|
||||||
("\\.scala\\'" scala-mode2 scala-mode)
|
("\\.scala\\'" scala-mode2 scala-mode)
|
||||||
("\\.scss\\'" scss-mode scss-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 '("\\.markdown\\'" . markdown-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.md\\'" . 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
|
;; build auto-install mappings
|
||||||
(mapc
|
(mapc
|
||||||
(lambda (entry)
|
(lambda (entry)
|
||||||
|
|
Loading…
Reference in a new issue