summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authornoa2025-02-16 22:08:22 +0800
committernoa2025-02-16 22:08:22 +0800
commit89bbda02f2829645e25ad82b8d34630efdf63b65 (patch)
treeaf048df3bea17db26ef001fc26c5e02296531f4f /emacs
parent42c531e6c74d9e91dbddd120a5ebe359f195599c (diff)
Add web mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 2cb8681..59fadc1 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -974,6 +974,24 @@ With prefix argument TIME, also add the current time."
(common-lisp-hyperspec-root "file:///usr/share/doc/hyperspec/"))
:mode ((rx (or ".lisp" ".cl") eos) . common-lisp-mode))
+;; Html
+
+(use-package web-mode
+ ;; :ensure t
+ :mode "\\.html?\\'"
+ :mode "\\.css\\'"
+ :mode "\\.phtml\\'"
+ :mode "\\.tpl\\.php\\'"
+ :mode "\\.[agj]sp\\'"
+ :mode "\\.as[cp]x\\'"
+ :mode "\\.erb\\'"
+ :mode "\\.mustache\\'"
+ :mode "\\.djhtml\\'"
+ :custom
+ (web-mode-markup-indent-offser 4)
+ (web-mode-css-indent-offset 4)
+ (web-mode-code-indent-offset 4))
+
;; Write url to text file
(defvar noa/record-url-file "~/Documents/Library/urls")
(defun noa/record-url (url &rest args)