Skip to content

Commit

Permalink
Fix for css yasnippet load issue.
Browse files Browse the repository at this point in the history
This fixes syl20bnr#532 by adding spacemacs/load-yasnippet to the css-mode-hook.
This fixes both css-mode and scss-mode.

Switch to init-yasnippet for calling load-yasnippet
  • Loading branch information
jcpetkovich authored and syl20bnr committed Feb 11, 2015
1 parent b8d8a0f commit f7ce640
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/lang/html/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
scss-mode
tagedit
web-mode
yasnippet
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
Expand Down Expand Up @@ -79,3 +80,9 @@ which require an initialization must be listed explicitly in the list.")
(tagedit-add-experimental-features)
(add-hook 'html-mode-hook (lambda () (tagedit-mode 1)))
(spacemacs|diminish tagedit-mode "" " T"))))

(defun html/init-yasnippet ()
(use-package yasnippet
:defer t
:init
(add-hook 'css-mode-hook 'spacemacs/load-yasnippet)))

0 comments on commit f7ce640

Please sign in to comment.