Emacs: Protect against missing font.
parent
5b10b0fa0d
commit
ead626b6a7
|
@ -14,7 +14,9 @@
|
|||
;;; Font size
|
||||
(when (fboundp 'tool-bar-mode)
|
||||
;; (set-face-attribute 'default nil :height 100)
|
||||
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-12")))
|
||||
(when (find-font (font-spec :name "DejaVu Sans Mono-12"))
|
||||
;; Emacs raises an error if font is not found.
|
||||
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-12"))))
|
||||
|
||||
;;; More readable but more space consuming; try on big screens.
|
||||
;; (setq-default line-spacing 1)
|
||||
|
|
Loading…
Reference in New Issue