 
 (setq css-indent-offset 2)
 
-(use-package markdown-mode+ :ensure t)
-(autoload 'markdown-mode "markdown-mode"
-  "Major mode for editing Markdown files" t)
-(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
-(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
-(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
+(use-package markdown-mode :ensure t
+  :mode (("\\.text\\'" . markdown-mode)
+         ("\\.markdown\\'" . markdown-mode)
+         ("\\.md\\'" . markdown-mode)))
+(use-package markdown-mode+ :ensure t
+  :after markdown-mode)
 
 (setq display-time-world-list '(("Europe/Paris" "Paris")
                                 ("Europe/London" "London")

(use-package requirejs :ensure t)

(use-package rjsx-mode :ensure t
  :config
  (add-to-list 'auto-mode-alist '("\\.js$" . rjsx-mode))
  (add-to-list 'auto-mode-alist '("\\.jsx$" . rjsx-mode))
  (add-hook #'js2-mode-hook #'ar/js2-mode-hook-function))

;; Disabling in favor of rjsx-mode.

(use-package tide :ensure t
  :after web-mode
  :config
  (add-hook 'js2-mode-hook #'ar/setup-tide-mode)
  (add-hook 'web-mode-hook
            (lambda ()
              (when (string-equal "tsx" (file-name-extension buffer-file-name))
                (ar/setup-tide-mode))))
  :mode (("\\.tsx\\'" . web-mode)))

(use-package company-flow :ensure t)

