 
 (defun spacemacs/init-yasnippet ()
   (use-package yasnippet
-    :defer t
+    :init
+    (let* ((layer (assq 'spacemacs spacemacs-config-layers))
+           (dir (plist-get (cdr layer) :dir)))
+      (setq yas-snippet-dirs (list (concat dir "snippets")))
+      (spacemacs//diminish yas-minor-mode " Ⓨ"))
     :config
     (spacemacs//diminish yas-minor-mode " Ⓨ")))
 

  (use-package helm
    :defer t
    :init
    (progn 
      (add-to-hooks 'helm-mode '(erlang-mode-hook
                                 markdown-mode-hook
                                 org-mode-hook

  (use-package helm-c-yasnippet
    :commands helm-c-yas-complete
    :init
    (progn
      (evil-leader/set-key "hy" 'helm-c-yas-complete)
      (setq helm-c-yas-space-match-any-greedy t))
    :config
    (yas-global-mode 1)))

(defun spacemacs/init-helm-descbinds ()
  (use-package helm-descbinds
