General refactor & cleanup, across the board

This commit is contained in:
Henrik Lissner 2019-09-13 21:59:03 -04:00
parent 4ddc5c194b
commit 2d365619cd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
35 changed files with 141 additions and 155 deletions

View file

@ -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

View file

@ -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")

View file

@ -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)