add config-dir variable and change load-path to use it

This commit is contained in:
2021-05-13 20:43:07 +02:00
parent 9723323a29
commit e13e08068b
22 changed files with 52 additions and 50 deletions

View File

@@ -171,7 +171,7 @@ DISPLAY-START: `integer', e.g. 3820"
:defer t)
(use-package all-the-icons
:load-path "lisp/all-the-icons"
:load-path (lambda() (concat config-dir "lisp/all-the-icons"))
:defer t
:config
(when (and (not (my-font-installed-p "all-the-icons"))
@@ -181,7 +181,7 @@ DISPLAY-START: `integer', e.g. 3820"
))
(use-package dashboard
:load-path "lisp/dashboard"
:load-path (lambda() (concat config-dir "lisp/dashboard"))
:delight (dashboard-mode "🅓")
:config
;; because we use `use-package' include `use-package-statistics' if computed