   (setq-default
    company-backends '((company-capf company-dabbrev-code) company-dabbrev))
 
-  (setq company-idle-delay 0.2)
-  (setq completion-cycling 5)
-  (setq company-selection-wrap-around t)
-  (setq company-tooltip-align-annotations t)
+  (setq
+   company-idle-delay 0.2
+   completion-cycling 5
+   company-selection-wrap-around t
+   company-tooltip-align-annotations t
+   company-auto-complete nil)
 
   (define-key evil-insert-state-map (kbd "M-n") 'company-complete-common)
   (evil-define-key 'hybrid company-active-map
+    (kbd "TAB") 'company-complete
     (kbd "M-n") 'company-select-next
-    (kbd "M-p") 'company-select-previous
-    )
-  )
-
-(use-package company-quickhelp
-  :after company
-  :disabled t
-  :config
-  (evil-define-key 'hybrid company-quickhelp-mode-map
-    (kbd "M-n") 'company-select-next
-    (kbd "M-p") 'company-select-previous
-    )
-  (company-quickhelp-mode t))
-
+    (kbd "M-p") 'company-select-previous))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; Snippets


;; Move files to trash when deleting
(setq delete-by-moving-to-trash t)
(setq x-select-enable-clipboard t)

;; Auto refresh buffers
(global-auto-revert-mode 1)

    (defadvice make-frame (around toggle-nlinum-mode compile activate)
      (nlinum-mode -1) ad-do-it (nlinum-mode 1)))
  )

(setq-default truncate-lines t) ;; disables line wrapping
(add-hook 'before-save-hook 'delete-trailing-whitespace)

