Skip to content

Commit

Permalink
Remove snippets initialization in plone bundle.
Browse files Browse the repository at this point in the history
It is now automatically enabled since there is a snippets directory.
  • Loading branch information
jone committed Oct 15, 2012
1 parent aa28b39 commit 515baca
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bundles/plone/bundle.el
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,3 @@ then prompts for a file. Expects to be within a package
(define-key python-mode-map (kbd "C-M-S-<return>") 'cabbage-plone-lookup-import))

(add-hook 'python-mode-hook 'cabbage-plone--python-bindings)

(defun cabbage-plone--init-snippets ()
(when (cabbage-bundle-active-p 'snippets)
(add-to-list 'yas/root-directory
(concat (concat cabbage-bundle-dir "plone/snippets")) t)
(yas/reload-all)))

(add-hook 'python-mode-hook 'cabbage-plone--init-snippets)

0 comments on commit 515baca

Please sign in to comment.