   :init
   (global-set-key (kbd "C-'") 'company-try-hard))
 
-(use-package company-ycmd
-  :commands (global-ycmd-mode)
-  :diminish ycmd-mode
+(use-package company-flx
+  :commands (company-flx-mode)
   :init
-  (add-hook 'global-company-mode-hook
-            (lambda ()
-              (progn
-                (global-ycmd-mode)
-                (add-to-list 'company-backends
-                             '(company-ycmd :with company-yasnippet)))))
-  (setq ycmd-server-command '("python2" "/home/bruno/code/ycmd/ycmd")))
+  (add-hook 'global-company-mode-hook 'company-flx-mode))
 
 (global-set-key (kbd "M-/") 'hippie-expand)
 

  (add-hook 'company-completion-cancelled-hook (lambda (arg) (fci-mode 1)))
  (add-hook 'company-completion-finished-hook (lambda (arg) (fci-mode 1)))
  (add-hook 'company-completion-started-hook (lambda (arg) (fci-mode 0)))
  (setq company-dabbrev-downcase nil
        company-dabbrev-ignore-case t
        company-idle-delay 0.25

(use-package company
  :commands (global-company-mode)
  :config
  (require 'dabbrev)
  (bind-keys :map company-active-map
             ("TAB" . company-select-next)
             ([tab] . company-select-next)
