   :config
   (setq sml/no-confirm-load-theme t)
   (sml/setup))
-
-(use-package nav-flash
-  :commands (nav-flash-show)
-  :init (setq nav-flash-delay 0.6)
-  (add-hook 'imenu-after-jump-hook 'nav-flash-show nil t)
-  (defun flash-defun ()
-    "flash current defun"
-    (interactive)
-    (save-restriction
-      (narrow-to-defun)
-      (nav-flash-show (point-min) (point-max))))
-  (defvar nav-flash-show-soon-timer nil)
-  (defun nav-flash-show-soon-cancel-timer ()
-    (when nav-flash-show-soon-timer
-      (cancel-timer nav-flash-show-soon-timer)
-      (setq nav-flash-show-soon nil)))
-  (defun nav-flash-show-soon (&optional later)
-    (nav-flash-show-soon-cancel-timer)
-    (setq nav-flash-show-soon-timer
-          (run-with-timer (if later 0.4 0.25) nil
-                          '(lambda ()
-                             (nav-flash-show)))))
-  (defun nav-flash-show-later ()
-    (nav-flash-show-soon t))
-  (add-hook 'focus-in-hook 'nav-flash-show-later)
-  (add-hook 'focus-out-hook 'nav-flash-show-soon-cancel-timer)
-  (defun recenter-top-bottom-flash ()
-    (interactive)
-    (call-interactively 'recenter-top-bottom)
-    (nav-flash-show))
-  (defun move-to-window-line-top-bottom-flash ()
-    (interactive)
-    (call-interactively 'move-to-window-line-top-bottom)
-    (nav-flash-show))
-  (defun scroll-up-command-flash ()
-    (interactive)
-    (call-interactively 'scroll-up-command)
-    (nav-flash-show-soon))
-  (defun scroll-down-command-flash ()
-    (interactive)
-    (call-interactively 'scroll-down-command)
-    (nav-flash-show-soon))
-  :bind (("M-v" . scroll-down-command-flash)
-         ;; ("M-r" . move-to-window-line-top-bottom-flash)
-         ("C-l" . recenter-top-bottom-flash)
-         ("C-v" . scroll-up-command-flash)))
 
 (use-package google-translate
   :defer t

  (setq helm-ag-base-command "ag --smart-case --nocolor --nogroup")
  (setq helm-ag-insert-at-point 'symbol)
  (add-hook 'helm-ag-mode-hook (lambda () (grep-mode))))

(use-package projectile
  :diminish projectile-mode

(use-package whitespace
  :diminish whitespace-mode
  :config
  (setq whitespace-line-column 90)             ;; limit line length
  (setq whitespace-style '(face trailing newline))
  (add-hook 'prog-mode-hook 'whitespace-mode))

