             (setq
              company-transformers '(company-mode/keyword-cancel-transformer company-sort-by-occurrence))
             )
-          (setq company-transformers '(company-sort-by-occurrence)) ;else
-          )
+        (setq company-transformers '(company-sort-by-occurrence)) ;else
+        )
 
       (setq company-idle-delay 0.0
             company-minimum-prefix-length 2

       '(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil)))))

      (setq company-backends (mapcar #'company-mode/backend-with-yas company-backends))

      (spacemacs|diminish company-mode " Ⓒ" " C"))))


  "Packages that use auto-complete that are no longer necessary and might conflict.")

(defun company-mode/backend-with-yas (backend)
  (if (or (not company-mode-enable-yas)
          (and (listp backend) (member 'company-yasnippet backend))
          (eq 'company-semantic backend))
      backend
    (append (if (consp backend) backend (list backend))
            '(:with company-yasnippet))))
