       python-mode-hook '(lambda () (progn
 				     (set-variable 'py-indent-offset 4)
 				     (set-variable 'indent-tabs-mode nil))))
-
-;; (eval-after-load 'company
-;;   (progn
-;;     (define-key company-active-map (kbd "TAB") nil)
-;;     (define-key company-active-map [tab] nil)))
 
 (use-package company
   :ensure company)

(setq company-auto-complete nil)

(add-hook 'lisp-mode #'(complete-mode 1))

;; (defun indent-or-complete ()
;;   (interactive)
;;   (if (looking-at "\\_>")
;;       (company-complete-common)
;;     (indent-according-to-mode)))

;; (defun complete-or-indent ()
;;   (interactive)
;;   (if (company-manual-begin)
;;       (company-complete-common)
;;     (indent-according-to-mode)))

(defadvice kill-line (before check-position activate)
  (if (and (eolp) (not (bolp)))

  (let ((yas/fallback-behavior 'return-nil))
    (yas/expand)))

(setq company-idle-delay 0.3)
(setq company-tooltip-limit 20)
(setq company-minimum-prefix-length 2)
