Add company-web/pug-mode to Caskfile + update projectile-other-file-alist for html files

This commit is contained in:
Henrik Lissner 2016-05-19 03:19:54 -04:00
parent 9823e68585
commit 823d3b5107
2 changed files with 4 additions and 3 deletions

3
Cask
View file

@ -235,13 +235,14 @@
;; Web -- modules/module-web.el
(depends-on "web-mode")
(depends-on "company-web")
(depends-on "emmet-mode")
(depends-on "haml-mode")
(depends-on "stylus-mode")
(depends-on "less-css-mode")
(depends-on "scss-mode")
(depends-on "sass-mode")
(depends-on "jaded-mode" :git "https://github.com/hlissner/jaded-mode")
(depends-on "pug-mode" :git "https://github.com/hlissner/pug-mode")
;;;; ORGANIZATIONAL/WRITING ;;;;;;;;;;;;

View file

@ -86,7 +86,7 @@
:config
(def-company-backend! web-mode (web-html yasnippet))
(setq web-mode-enable-html-entities-fontification t)
(push '("html" "jade") projectile-other-file-alist)
(push '("html" "jade" "pug" "jsx" "tsx") projectile-other-file-alist)
(map! :map web-mode-map :i "SPC" 'self-insert-command)
@ -140,7 +140,7 @@
(web-mode-set-engine "django"))))
(def-project-type! wordpress "wp"
:modes (php-mode web-mode css-mode scss-mode sass-mode)
:modes (php-mode web-mode css-mode haml-mode pug-mode)
:match "/wp-\\(\\(content\\|admin\\|includes\\)/\\)?.+$"
:files ("wp-config.php" "wp-content/"))