    objc-mode-map
    ("M-." . rtags-find-symbol-at-point))
   :config
+  ;; Work in progress.
+  ;; (use-package flycheck-rtags)
   (setq rtags-path "~/stuff/active/code/rtags/bin")
   (setq rtags-use-helm t))
+
+;; Work in progress.
+;; (defun ar/flycheck-rtags-setup ()
+;;   (interactive)
+;;   (flycheck-select-checker 'rtags)
+;;   (setq-local flycheck-highlighting-mode nil) ;; RTags creates more accurate overlays.
+;;   (setq-local flycheck-check-syntax-automatically nil))
 
 ;; Needed for endlessparentheses's hack.
 (use-package cider :ensure t)

  (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
  (add-to-list 'auto-mode-alist '("\\.jsx$" . js2-mode))
  (add-hook #'js2-mode-hook #'ar/js2-mode-hook-function))

(use-package dart-mode :ensure t)



;; Quickly undo pop-ups or other window configurations.
(use-package winner :ensure t
  :config
  (defun ar/dwim-key-esc ()
    "Do what I mean when pressing ESC."
