       uniquify-buffer-name-style 'forward
       ediff-window-setup-function 'ediff-setup-windows-plain
       font-lock-maximum-decoration '((racket-mode . t) (t . 1))
-      vc-diff-switches "-u")
+      vc-diff-switches "-u"
+      search-highlight t
+      isearch-allow-scroll t)
 
 (if window-system
     (progn


;; TODO: semantic + projectile, projectile

(use-package projectile
  :diminish projectile-mode
  :init (setq projectile-enable-caching t)
  :config
  (projectile-global-mode))

(use-package flycheck)
(use-package company)

(use-package rtags
  ;; https://github.com/Andersbakken/rtags + https://github.com/rizsotto/Bear
  ;; to create compile_commands.json: bear scons
  :init
  (add-hook 'c-mode-common-hook
            (lambda ()
              (define-key c-mode-base-map (kbd "M-.") 'rtags-find-symbol-at-point)
              (define-key c-mode-base-map (kbd "M-,") 'rtags-location-stack-back))))

;; (use-package rust-mode
;;   :defer t
;;   :mode (("\\.rs$'" . rust-mode))


(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

(use-package elpy
  :commands (eply-enable)
  :init (with-eval-after-load 'python (elpy-enable))
  :config
  (remove-hook 'elpy-modules 'elpy-module-yasnippet)
  (when (or (equal system-type 'darwin) (kelly?))
    (remove-hook 'elpy-modules 'elpy-module-flymake)))

(use-package racket-mode
  :if (not (kelly?))
