 
   (add-hook 'js-mode-hook
             #'(lambda ()
+                (my-load-flycheck)
+
                 (use-package eslintd-fix
                   :functions eslintd-fix
                   :config

             ("<tab>" . nil)
             ("C-c i" . yas-expand)))

;; restclient
(use-package restclient
  :config
  (add-hook 'restclient-mode-hook
            #'(lambda ()
                (use-package company-restclient
                  :config
                  (add-to-list 'company-backends 'company-restclient)))))

;; Auto-completion
(use-package company
  :config
  (bind-keys :map company-mode-map
             ("M-/" . company-complete)))

(use-package company-statistics
  :after company
  :config (company-statistics-mode 1))

(use-package company-quickhelp
  :after company
  :config (company-quickhelp-mode 1))

(use-package company-flx
  :after company
  :config (company-flx-mode 1))

;; Much faster PDF viewing
(add-hook 'doc-view-mode-hook

  :config
  (add-hook 'json-mode-hook
            #'(lambda ()
                (my-load-flycheck)
                (use-package flycheck-demjsonlint))))

;; YAML mode
