doom-doctor: use ~ instead of HOME envvar

This commit is contained in:
Henrik Lissner 2018-07-05 01:32:38 +02:00
parent 1fa4c65c3a
commit 8b8c7c7411
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -155,9 +155,9 @@
;; all-the-icons fonts
(let ((font-dest (pcase system-type
('gnu/linux (concat (or (getenv "XDG_DATA_HOME")
(concat (getenv "HOME") "/.local/share"))
"~/.local/share")
"/fonts/"))
('darwin (concat (getenv "HOME") "/Library/Fonts/")))))
('darwin "~/Library/Fonts/"))))
(when (and font-dest (require 'all-the-icons nil t))
(dolist (font all-the-icons-font-names)
(if (file-exists-p (expand-file-name font font-dest))