                         :prefix default-leader-key
                         "d" 'counsel-dash-at-point
                         "D" 'counsel-dash)
-)
+  )
 (use-package editorconfig)
 (use-package ensime
-  :init
-    (setq ensime-startup-notification nil)
-    (setq ensime-startup-snapshot-notification nil)
+  :commands (ensime ensime-mode)
+  :init
+    (setq ensime-startup-notification nil
+          ensime-startup-snapshot-notification nil)
+
     (add-hook 'scala-mode-hook #'ensime-mode)
-  :commands (ensime ensime-mode)
+  :config
+    (set-face-attribute 'ensime-implicit-highlight nil
+                        :underline nil
+                        :slant 'italic)
+
 )
 (use-package evil-matchit
-  :config
-    (global-evil-matchit-mode 1)
+  :config (global-evil-matchit-mode 1)
 )
 (use-package evil-numbers
   :config
     (general-define-key :states '(normal)
                         "C-a" 'evil-numbers/inc-at-pt
-                        "C-x" 'evil-numbers/dec-at-pt)
-)
+                        "C-x" 'evil-numbers/dec-at-pt))
 (use-package evil-surround
-  :config
-    (global-evil-surround-mode 1)
-)
+  :config (global-evil-surround-mode 1))
 (use-package evil-visual-mark-mode
-  :config
-    (evil-visual-mark-mode 1)
-)
+  :config (evil-visual-mark-mode 1))
 (use-package fic-mode
-  :config
-    (add-hook 'prog-mode-hook (function (lambda () (fic-mode 1))))
-)
+  :config (add-hook 'prog-mode-hook (function (lambda () (fic-mode 1)))))
 (use-package flycheck
   :after (general)
-  :diminish flycheck-mode
+  :delight flycheck-mode
+  :commands (flycheck-mode)
   :init
     (add-to-list 'display-buffer-alist
                  `(,(rx bos "*Flycheck errors*" eos)

(use-package counsel
  :after (general)
  :init
    (defun counsel-ag-project-at-point ()
      (interactive)
      (counsel-ag (thing-at-point 'symbol) (projectile-project-root))
    )
  :config
    (general-define-key :states '(normal)
                        "/" 'swiper

                        "f" 'counsel-ag-project-at-point
                        "B" 'ivy-switch-buffer
                        "E" 'counsel-find-file)
  )
(use-package counsel-dash
  :after (general)
  :init
    (setq counsel-dash-docsets-path "~/.emacs.d/dash-docsets"
          counsel-dash-min-length 3
          counsel-dash-browser-func 'browse-url
          )

    (defun counsel-dash-at-point ()
      (interactive)
      (counsel-dash (thing-at-point 'symbol)))
  :commands (counsel-dash-activate-docset counsel-dash counsel-dash-at-point counsel-dash)
  :config
    (add-hook 'emacs-lisp-mode-hook (lambda () (setq-local counsel-dash-docsets '("Emacs Lisp"))))
