                         "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))
-    )
+      (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"))))

                        :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)
    (add-hook 'scala-mode-hook #'ensime-mode)
  :commands (ensime ensime-mode)
)
(use-package evil-matchit
  :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)
)
(use-package evil-surround
  :config
    (global-evil-surround-mode 1)
)
(use-package evil-visual-mark-mode
  :config
    (evil-visual-mark-mode 1)
)
(use-package fic-mode
  :config
    (add-hook 'prog-mode-hook (function (lambda () (fic-mode 1))))
)
(use-package flycheck
  :after (general)
  :diminish 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
