adding web-mode

This commit is contained in:
Chris Cochrun 2022-11-08 10:54:53 -06:00
parent 1011242495
commit 1dcf5d3477
2 changed files with 24 additions and 16 deletions

View file

@ -1969,6 +1969,20 @@ In c++ I just want to make sure lsp is called when enter c++-mode
(add-hook 'c++-mode-hook 'eglot)
#+END_SRC
*** Web
For developing websites, I like to use web-mode
#+begin_src emacs-lisp
(use-package web-mode
:config
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(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 '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.djhtml?\\'" . web-mode)))
#+end_src
*** Lua
Since I use the Awesome WM I thought it'd be good to have lua around. It's also in a lot of things.
#+begin_src emacs-lisp