                   'html-mode-hook
                   'js2-mode-hook)
   :config
-  (use-package flycheck-pos-tip
-    :config (setq flycheck-display-errors-function
-                  #'flycheck-pos-tip-error-messages)))
+  (use-package flycheck-pos-tip)
+  (setq flycheck-display-errors-function
+        #'flycheck-pos-tip-error-messages))
 
 (use-package flyspell
   :diminish " $"


(use-package company :demand :diminish " K"
  :bind ("C-; k" . global-company-mode)
  :config
  (global-company-mode 1)
  (unbind-key "<tab>" company-active-map)
  (unbind-key "TAB" company-active-map)
  (setq company-idle-delay 0.2
        company-minimum-prefix-length 2
        company-selection-wrap-around t
        company-tooltip-align-annotations t)
  (use-package company-flx
    :config (company-flx-mode 1))
  (use-package company-math
    :config (push 'company-math-symbols-unicode company-backends))
  (use-package company-quickhelp
    :config
    (company-quickhelp-mode 1)
    (setq company-quickhelp-delay 1)))

(use-package flycheck
  :bind ("C-; f" . flycheck-mode)
  :init (hook-all #'flycheck-mode
                  'emacs-lisp-mode-hook
                  'geiser-mode-hook
                  'ess-mode-hook
                  'shell-mode-hook

  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile (require 'use-package))
(setq use-package-always-ensure t)
;; (setq use-package-verbose t)

(use-package benchmark-init
  ;; benchmarking require and load functions
  ;; for finding out where time is being spent
  :disabled
  :config (benchmark-init/activate))

;;;;;;;;;;
