Write modules + defuns
This commit is contained in:
parent
b998f4ab08
commit
3472a1631f
31 changed files with 1418 additions and 32 deletions
29
modules/module-sass.el
Normal file
29
modules/module-sass.el
Normal file
|
@ -0,0 +1,29 @@
|
|||
;;; module-sass.el --- sass/scss
|
||||
|
||||
(use-package sass-mode
|
||||
:mode "\\.sass$"
|
||||
:init (add-hook! sass-mode 'narf|enable-tab-width-2)
|
||||
:config (after! company (add-company-backend! sass-mode (css))))
|
||||
|
||||
(use-package scss-mode
|
||||
:mode "\\.scss$"
|
||||
:init
|
||||
(add-hook! scss-mode 'narf|enable-tab-width-2)
|
||||
(setq-default css-indent-offset 2)
|
||||
(setq scss-compile-at-save nil)
|
||||
:config
|
||||
;; Syntax coloring breaks on consecutive loads for some reason. This fixes that:
|
||||
(add-hook! scss-mode 'css-mode)
|
||||
|
||||
(after! web-beautify
|
||||
(add-hook! scss-mode (setenv "jsbeautify_indent_size" "2"))
|
||||
(bind! :map scss-mode-map :m "gQ" 'web-beautify-css))
|
||||
|
||||
(after! company (add-company-backend! scss-mode (css))))
|
||||
|
||||
(use-package rainbow-mode
|
||||
:defer t
|
||||
:init (add-hook! scss-mode 'rainbow-mode))
|
||||
|
||||
(provide 'module-sass)
|
||||
;;; module-sass.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue