Merge pull request #275 from amosbird/patch-4

nil check for frame
This commit is contained in:
Henrik Lissner 2017-12-03 19:59:56 -05:00 committed by GitHub
commit 585d9ce95a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@
(defun +unicode|init-fonts (&optional frame)
"Initialize `unicode-fonts', if in a GUI session."
(when (display-graphic-p frame)
(when (and frame (display-graphic-p frame))
(with-selected-frame frame
(require 'unicode-fonts)
;; NOTE will impact startup time on first run