General refactor & cleanup, across the board
This commit is contained in:
parent
4ddc5c194b
commit
2d365619cd
35 changed files with 141 additions and 155 deletions
|
@ -1,7 +1,8 @@
|
|||
;;; lang/web/+css.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; An improved newline+continue comment function
|
||||
(setq-hook! css-mode comment-indent-function #'+css/comment-indent-new-line)
|
||||
(setq-hook! css-mode
|
||||
comment-indent-function #'+css/comment-indent-new-line)
|
||||
|
||||
(map! :map (css-mode-map scss-mode-map less-css-mode-map)
|
||||
:localleader
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
;;; lang/web/+html.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! web-mode
|
||||
:mode "\\.p?html?$"
|
||||
:mode "\\.\\(?:tpl\\|blade\\)\\(\\.php\\)?$"
|
||||
:mode "\\.erb$"
|
||||
:mode "\\.jsp$"
|
||||
:mode "\\.as[cp]x$"
|
||||
:mode "\\.hbs$"
|
||||
:mode "\\.mustache$"
|
||||
:mode "\\.tsx$"
|
||||
:mode "\\.vue$"
|
||||
:mode "\\.twig$"
|
||||
:mode "\\.jinja$"
|
||||
:mode "wp-content/themes/.+/.+\\.php$"
|
||||
:mode "templates/.+\\.php$"
|
||||
:mode "\\.p?html?\\'"
|
||||
:mode "\\.\\(?:tpl\\|blade\\)\\(?:\\.php\\)?\\'"
|
||||
:mode "\\.erb\\'"
|
||||
:mode "\\.jsp\\'"
|
||||
:mode "\\.as[cp]x\\'"
|
||||
:mode "\\.hbs\\'"
|
||||
:mode "\\.mustache\\'"
|
||||
:mode "\\.tsx\\'"
|
||||
:mode "\\.vue\\'"
|
||||
:mode "\\.twig\\'"
|
||||
:mode "\\.jinja\\'"
|
||||
:mode "wp-content/themes/.+/.+\\.php\\'"
|
||||
:mode "templates/.+\\.php\\'"
|
||||
:config
|
||||
(set-docsets! 'web-mode "HTML" "CSS" "Twig" "WordPress")
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
;;
|
||||
;; Framework-based minor-modes
|
||||
;;; Framework-based minor-modes
|
||||
|
||||
(def-project-mode! +web-jekyll-mode
|
||||
:modes '(web-mode js-mode coffee-mode css-mode haml-mode pug-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue