From 86ce44750f8559e74852cbc2dc219f7ca49b7be7 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 8 Feb 2021 07:40:01 -0600 Subject: Add web-mode --- config.org | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/config.org b/config.org index bd60ff2..70852f4 100644 --- a/config.org +++ b/config.org @@ -1724,6 +1724,28 @@ checks for a shebang). (get 'when 'common-lisp-indent-function)) #+end_src +*** Web + +#+begin_src emacs-lisp :noweb-ref packages + (straight-use-package 'web-mode) + (require 'web-mode) +#+end_src + +#+begin_src emacs-lisp :noweb-ref hooks + (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) +#+end_src + +#+begin_src emacs-lisp :noweb-ref settings + (setq-default web-mode-enable-current-element-highlight t) +#+end_src + * Applications Emacs is well-known for its ability to subsume one's entire computing -- cgit 1.4.1-21-gabe81