Fix auto-mode-alist setup for adoc-mode

This commit is contained in:
Bozhidar Batsov 2020-10-18 13:20:51 +03:00
parent 1793b8f270
commit 1674284345

View file

@ -201,10 +201,12 @@ PACKAGE is installed only if not already present. The file is opened in MODE."
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . gfm-mode)) (add-to-list 'auto-mode-alist '("\\.markdown\\'" . gfm-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . gfm-mode))) (add-to-list 'auto-mode-alist '("\\.md\\'" . gfm-mode)))
;; same with adoc-mode
(when (package-installed-p 'adoc-mode) (when (package-installed-p 'adoc-mode)
(add-to-list 'auto-mode-alist '("\\.adoc\\'" 'adoc-mode)) (add-to-list 'auto-mode-alist '("\\.adoc\\'" . adoc-mode))
(add-to-list 'auto-mode-alist '("\\.asciidoc\\'" 'adoc-mode))) (add-to-list 'auto-mode-alist '("\\.asciidoc\\'" . adoc-mode)))
;; and pkgbuild-mode
(when (package-installed-p 'pkgbuild-mode) (when (package-installed-p 'pkgbuild-mode)
(add-to-list 'auto-mode-alist '("PKGBUILD\\'" . pkgbuild-mode))) (add-to-list 'auto-mode-alist '("PKGBUILD\\'" . pkgbuild-mode)))