   :config
   (setq projectile-completion-system 'ivy)
 
-  (projectile-mode 1)
-
-  (leader
-    "p" '(:ignore t :which-key "project")
-    "pf" 'projectile-find-file
-    "pt" 'projectile-dired
-    "pg" 'projectile-grep
-    "pG" 'counsel-git-grep
-    "fg" 'counsel-grep
-    "pT" 'projectile-run-term))
+  (projectile-mode 1))
 
 ;;; TODO proof general
 
 (use-package rainbow-delimiters
   :hook (prog-mode . rainbow-delimiters-mode))
-
-(use-package spacemacs-theme
-  :defer t
-  :init (load-theme 'spacemacs-dark t))
 
 ;;; File types
 

  :defer t
  :hook (org-mode . org-indent-mode)
  :config
  (require 'org-man)

  ;; TODO set org directory for org-agenda

  (local-leader
    :keymaps 'org-mode-map
    "i" '(:ignore t :which-key "insert")
    "il" 'org-insert-link
    "o" 'org-open-at-point
    "a" 'org-agenda
    "c" 'org-capture
    "g" 'org-store-link
    "e" 'org-export-dispatch
    "v" 'org-eval
    "s" 'org-edit-src-code
    "t" 'org-todo))

(use-package restclient
  :mode ("\\.restclient\\'" . restclient-mode)
  :config

  (local-leader
    :keymaps 'restclient-mode-map
    "s" '(:ignore t :which-key "send")
    "sc" 'restclient-http-send-current
    "sr" 'restclient-http-send-current-raw
    "ss" 'restclient-http-send-current-stay-in-window
    "j" 'restclient-jump-prev
    "k" 'restclient-jump-next))

(use-package ledger-mode
  :defer t
  :config

  ;; FIXME `ledger-mode-clean-buffer' should sort in reverse order
  (local-leader
    :keymaps 'ledger-mode-map
    "c" 'ledger-mode-clean-buffer
    "k" 'ledger-check-buffer
    "b" '(:ignore t :which-key "balance")
    "bb" 'ledger-display-balance
    "bp" 'ledger-display-balance-at-point
    "r" '(:ignore t :which-key "register")))

(custom-set-variables
 ;; custom-set-variables was added by Custom.

  (setq ivy-use-virtual-buffers t
        ivy-count-format "%d/%d ")
  (ivy-mode 1)
  (counsel-mode 1))

(use-package company
  :diminish company-mode
