   :config
   (add-hook 'yaml-mode-hook
             #'(lambda ()
+                (flycheck-mode t)
                 (use-package flycheck-yamllint
-                  :config (add-hook 'flycheck-mode-hook 'flycheck-yamllint-setup)))))
+                  :config
+                  (flycheck-yamllint-setup)))))
 
 ;; JavaScript
 (add-to-list 'auto-mode-alist '("\\.js[x]?\\'" . js-jsx-mode))

                (bind-keys :map js-mode-map
                           ("C-c C-f" . eslintd-fix)))

              (use-package company-tern
                :config (add-to-list 'company-backends 'company-tern))

              (use-package flow-minor-mode
                :config (flow-minor-mode t))

              (use-package company-flow
                :config (add-to-list 'company-backends 'company-flow))

              (use-package flycheck-flow
                :config
                (flycheck-add-next-checker 'javascript-eslint 'javascript-flow 'append)
                (flycheck-add-next-checker 'javascript-flow 'javascript-flow-coverage 'append))))

;; TypeScript
(use-package typescript-mode

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

;; Auto-completion
(use-package company-quickhelp
  :config (company-quickhelp-mode t))

(use-package company-flx
  :config (company-flx-mode t))

;; Much faster PDF viewing
(add-hook 'doc-view-mode-hook
          #'(lambda ()
              (when (fboundp 'pdf-tools-install)
                (pdf-tools-install))))

;; Lisp
(dolist (hook '(lisp-mode-hook emacs-lisp-mode-hook))
  (add-hook hook #'(lambda () (flycheck-mode t))))
(bind-keys :map emacs-lisp-mode-map
           ("C-c e c" . emacs-lisp-byte-compile)
           ("C-c e l" . emacs-lisp-byte-compile-and-load))

;; Shell mode
(add-hook 'sh-mode-hook
          #'(lambda ()
              (flycheck-mode t)
              (use-package company-shell
                :config
                (add-to-list 'company-backend '(company-shell company-shell-env)))))

;; JSON mode
(use-package json-mode
  :config
  (add-hook 'json-mode-hook
            #'(lambda ()
                (flycheck-mode t)
                (use-package flycheck-demjsonlint))))

;; YAML mode
