From daf8391edf5bd8c01ced93e1d4c3bf451f6b596a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 19 Jun 2018 10:45:30 -0700 Subject: [PATCH] Add mode specifications for .inc and .module .inc are a commonly used PHP extension for included files. .module is the Drupal module file extension. --- emacs/.emacs.d/init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 9175e4a..f677319 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -311,9 +311,11 @@ :interactive) (add-to-list 'auto-mode-alist '("\\.blade\\.php\\'" . web-mode)) +(add-to-list 'auto-mode-alist '("\\.inc\\'" . php-mode)) (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) (add-to-list 'auto-mode-alist '("\\.jsx\\'" . rjsx-mode)) (add-to-list 'auto-mode-alist '("\\.mbsyncrc\\'" . mbsync-conf-mode)) +(add-to-list 'auto-mode-alist '("\\.module\\'" . php-mode)) (add-to-list 'auto-mode-alist '("\\.msmtprc\\'" . msmtprc-mode)) (add-hook 'git-commit-mode-hook 'electric-quote-local-mode)