      (define-key paredit-mode-map (kbd "c-(") 'paredit-backward-slurp-sexp)))
 (eval-after-load 'inf-ruby '
   '(define-key inf-ruby-mode-map (kbd "tab") 'auto-complete))
+(eval-after-load "php-mode"
+  '(progn
+     (define-key php-mode-map (kbd "\C-c\C-f") 'cedit-wrap-brace)
+     ))
 (eval-after-load "haskell-mode"
   '(progn
      (define-key haskell-mode-map (kbd "c-x c-d") nil)

(eval-after-load "ruby-mode"
  '(add-hook 'ruby-mode-hook 'ruby-electric-mode))
(add-hook 'haskell-mode-hook 'structured-haskell-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'scala-mode2-hook 'ensime-scala-hook)
(add-hook 'ruby-mode-hook 'robe-mode)
(add-hook 'robe-mode-hook 'robe-ac-setup)

(require 'popup)
(require 'php-extras)
(require 'auto-complete-config)
(defun yas/popup-isearch-prompt (prompt choices &optional display-fn)
  (when (featurep 'popup)
    (popup-menu*
