   :bind ("C-c s" . deadgrep))
 
 (use-package projectile
-  :init
-  (setq projectile-mode-line-function '(lambda () (format " [%s]" (projectile-project-name))))
-  (setq projectile-indexing-method 'alien)
+  :custom
+  (projectile-mode-line-function '(lambda () (format " [%s]" (projectile-project-name))))
+  (projectile-indexing-method 'alien)
   :defer 1
   :bind (("C-c p" . hydra-projectile/body)
          ("C-c f" . projectile-find-file)

(require 'use-package)
(setq use-package-always-ensure t)


(defvar dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))

(defvar dotfiles-lib-dir (concat dotfiles-dir "lib/"))
(defvar dotfiles-etc-dir (concat dotfiles-dir "etc/"))

(add-to-list 'load-path dotfiles-lib-dir)


(setq gc-cons-threshold 20000000)


(setq-default auto-fill-mode 1)
(setq-default indent-tabs-mode nil)

(use-package diminish
  :init
  (diminish 'eldoc-mode))

(use-package htmlize)

(use-package eval-sexp-fu
  :custom
  (eval-sexp-fu-flash-duration 0.3))

(use-package rainbow-delimiters
  :hook ((text-mode prog-mode) . rainbow-delimiters-mode))

(use-package subword
  :diminish
