Pug mode support has been added

This commit is contained in:
Sameer Rahmani 2019-01-30 22:15:09 +00:00
parent 898f02603d
commit b49a32b73c
2 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,7 @@
(depends-on 'js2-refactor)
(depends-on 'smart-forward)
(depends-on 'ac-js2)
(depends-on 'pug-mode)
(with-ability prettierjs
(depends-on 'prettier-js))

View File

@ -38,6 +38,14 @@
(require 'ac-js2)
(add-to-list 'company-backends 'ac-js2-company))
(with-ability pug-editor ()
"Pug template editor."
(setq pug-tab-width 2)
(add-to-list 'auto-mode-alist '("\\.pug\\'" . (lambda ()
(require 'pug-mode)
(pug-mode)
(setq pug-tab-width 2)))))
(ability javascript-editor ('flycheck)
"Gives FG42 the ability to edit javascript."