Emacs: Reformat all-the-icons and update comments.

This commit is contained in:
tastytea 2020-03-08 10:42:42 +01:00
parent 2691fd1d81
commit fe81e9cec6
1 changed files with 10 additions and 12 deletions

View File

@ -1,6 +1,6 @@
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-08T10:20:47+0100>
;; Time-stamp: <2020-03-08T10:42:28+0100>
;;; Commentary:
@ -33,18 +33,16 @@
;; Icon font (required by doom and others).
(use-package all-the-icons
:pin melpa ; We need > 3.2.0 for all-the-icons-ivy-rich (issue #4).
:init
(defun my/font-installed-p (font-name)
"Check if font with FONT-NAME is available."
(if (find-font (font-spec :name font-name))
t
nil))
:config
:init (defun my/font-installed-p (font-name)
"Check if font with FONT-NAME is available."
(if (find-font (font-spec :name font-name))
t
nil))
;; Install fonts if we have a GUI and the font is not already installed.
(when (and (window-system) (not (my/font-installed-p "all-the-icons")))
(all-the-icons-install-fonts t))
;; See <https://github.com/domtronn/all-the-icons.el/issues/58>.
:config (when (and (window-system)
(not (my/font-installed-p "all-the-icons")))
(all-the-icons-install-fonts t))
)
(unless slow-computer