 (setq vc-follow-symlinks t)  ; auto follow symbolic links
 (electric-pair-mode 1)  ; pairing brackets
 (setq frame-background-mode 'dark)
+(add-to-list 'write-file-functions 'delete-trailing-whitespace)
+
+;; company
 (setq company-idle-delay 0)  ; autocomplete delay
-(add-to-list 'write-file-functions 'delete-trailing-whitespace)
+(setq company-minimum-prefix-length 2)
 
 ;; pbcopy
 (defun pbcopy ()


)

; Keybindings
; move cursor multiple lines
(global-set-key (kbd "M-n")
		(lambda () (interactive) (next-line 7)))

(el-get-install 'haskell-mode)
(el-get-install 'neotree)

;; company-mode
(add-hook 'after-init-hook 'global-company-mode)
(add-hook 'python-mode-hook 'anaconda-mode
  (lambda ()
    (setq-local company-backends '((company-anaconda)))))

(with-eval-after-load 'company  (define-key company-active-map (kbd "M-n") nil)
  (define-key company-active-map (kbd "M-p") nil)
  (define-key company-active-map (kbd "C-n") #'company-select-next)
  (define-key company-active-map (kbd "C-p") #'company-select-previous))

;; jedi:setup, replaced by anaconda-mode
; (add-hook 'python-mode-hook 'jedi:setup)
