Set font immediately at startup
This commit is contained in:
parent
869fe2d1c3
commit
6cad215a65
12
init.el
12
init.el
@ -19,10 +19,14 @@
|
|||||||
|
|
||||||
;; Font ---------------------------------------------------------------------
|
;; Font ---------------------------------------------------------------------
|
||||||
|
|
||||||
(setq default-frame-alist '((font . "Source Code Pro-10")))
|
(let* ((font-name "Source Code Pro")
|
||||||
;; Emacs does not set italic face automatically
|
(font-size 10)
|
||||||
(set-face-attribute 'italic nil
|
(font-spec (concat font-name "-" (int-to-string font-size))))
|
||||||
:family "Source Code Pro-Italic")
|
|
||||||
|
(set-frame-font font-spec nil t)
|
||||||
|
(add-to-list 'default-frame-alist `(font . ,font-spec))
|
||||||
|
(set-face-attribute 'italic nil ;; Emacs does not set italic face
|
||||||
|
:family (concat font-name "-Italic")))
|
||||||
|
|
||||||
;; Fullscreen ---------------------------------------------------------------
|
;; Fullscreen ---------------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user