Emacs: Reformat all-the-icons and update comments.
This commit is contained in:
parent
2691fd1d81
commit
fe81e9cec6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue