 ;;; Code:
 
 ;; increase gc threshold (speeds up initial load)
-(setq gc-cons-threshold 400000000)
+(setq gc-cons-threshold (* 50 1000 1000))
 
 ;;; [PACKAGE SETUP] =============================================
 

		  "! ")
	    (setq flymake-diagnostic-at-point-display-diagnostic-function
		  'flymake-diagnostic-at-point-display-minibuffer)
	    (add-hook 'flymake-mode-hook #'flymake-diagnostic-at-point-mode)))
(add-hook 'find-file-hook 'flymake-find-file-hook)
(evil-leader/set-key "j" 'flymake-goto-next-error)
(evil-leader/set-key "k" 'flymake-goto-prev-error)

;; Company for autocompletions
(use-package company

  :init (global-evil-surround-mode 1))

;; Evil number increment

(unless (package-installed-p 'evil-numbers)
  (quelpa '(evil-numbers :repo "janpath/evil-numbers"
			 :fetcher github)))
;; cannot directly use C-x (in use by emacs)
(define-key evil-normal-state-map (kbd "g C-a") 'evil-numbers/inc-at-pt-incremental)
(define-key evil-normal-state-map (kbd "g C-x") 'evil-numbers/dec-at-pt-incremental)
