diff options
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -536,10 +536,11 @@ | |||
| 536 | :straight t | 536 | :straight t |
| 537 | :init | 537 | :init |
| 538 | (defun arkta/nerd-icons-maybe-install-fonts () | 538 | (defun arkta/nerd-icons-maybe-install-fonts () |
| 539 | (unless (find-font (font-spec :family nerd-icons-font-family)) | 539 | (when (and (display-graphic-p) |
| 540 | (not (find-font (font-spec :family nerd-icons-font-family)))) | ||
| 540 | ;; TODO: Maybe also reinstall them every month or so | 541 | ;; TODO: Maybe also reinstall them every month or so |
| 541 | (nerd-icons-install-fonts t))) | 542 | (nerd-icons-install-fonts t))) |
| 542 | :hook (after-init . arkta/nerd-icons-maybe-install-fonts)) | 543 | :hook ((after-init server-after-make-frame) . arkta/nerd-icons-maybe-install-fonts)) |
| 543 | 544 | ||
| 544 | (use-package nix-mode | 545 | (use-package nix-mode |
| 545 | :straight t | 546 | :straight t |