From 89bbda02f2829645e25ad82b8d34630efdf63b65 Mon Sep 17 00:00:00 2001 From: noa Date: Sun, 16 Feb 2025 22:08:22 +0800 Subject: Add web mode --- emacs/init.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'emacs') 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) -- cgit 1.4.1-2-gfad0