core-lib: add doom-{glob,path,dir}, replace {file,dir}!

- file! replaces FILE!
- dir! replaces DIR!
- doom-{glob,path,dir} have the power to construct paths out of the
  segment pieces provided to it.
- Move doom-files-in to core-lib and refactor to use the above.
This commit is contained in:
Henrik Lissner 2019-07-21 14:44:04 +02:00
parent 602e2f31c7
commit ee10b3b0d9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 111 additions and 91 deletions

View file

@ -16,7 +16,7 @@ while they run.")
"The path to the image file to be used in on the dashboard. The path is
relative to `+doom-dashboard-banner-dir'. If nil, always use the ASCII banner.")
(defvar +doom-dashboard-banner-dir (concat (DIR!) "banners/")
(defvar +doom-dashboard-banner-dir (concat (dir!) "banners/")
"Where to look for `+doom-dashboard-banner-file'.")
(defvar +doom-dashboard-banner-padding '(4 . 4)