windows: disable all-the-icons font install
the command is actually fairly useless on windows anyway -- unless you are specifically running emacs with elevated privileges, you get the following error: ``` This will download and install fonts, are you sure you want to do this? (y or n) y Contacting host: raw.githubusercontent.com:443 mm-write-region: Opening output file: Permission denied, c:/Windows/Fonts/material-design-icons.ttf ```
This commit is contained in:
parent
04d14bcba9
commit
22bc21a712
1 changed files with 9 additions and 8 deletions
|
@ -80,14 +80,15 @@ DOOMDIR environment variable. e.g.
|
|||
(print! "Regenerating autoloads files")
|
||||
(doom-cli-reload-autoloads)
|
||||
|
||||
(if nofonts-p
|
||||
(print! (warn "Not installing fonts, as requested"))
|
||||
(when (or doom-auto-accept
|
||||
(y-or-n-p "Download and install all-the-icon's fonts?"))
|
||||
(require 'all-the-icons)
|
||||
(let ((window-system (cond (IS-MAC 'ns)
|
||||
(IS-LINUX 'x))))
|
||||
(all-the-icons-install-fonts 'yes))))
|
||||
(unless IS-WINDOWS
|
||||
(if nofonts-p
|
||||
(print! (warn "Not installing fonts, as requested"))
|
||||
(when (or doom-auto-accept
|
||||
(y-or-n-p "Download and install all-the-icon's fonts?"))
|
||||
(require 'all-the-icons)
|
||||
(let ((window-system (cond (IS-MAC 'ns)
|
||||
(IS-LINUX 'x))))
|
||||
(all-the-icons-install-fonts 'yes)))))
|
||||
|
||||
(when (file-exists-p "~/.emacs")
|
||||
(print! (warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue