adding web-mode
This commit is contained in:
parent
1011242495
commit
1dcf5d3477
2 changed files with 24 additions and 16 deletions
14
README.org
14
README.org
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue