From 39861418b8a91347416b7d66feebc6f3a0164327 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Mon, 19 Dec 2022 22:37:28 -0500 Subject: [PATCH] Move font selection to early-init --- init.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 2576f92..bbc61a7 100644 --- a/init.el +++ b/init.el @@ -58,6 +58,8 @@ ;; ;; -------------------------------------------------------------------------- ;; +(defconst user/font "Fira Code 10" "Default font.") + (defconst user/init-file (locate-user-emacs-file "init.el") "Location of user init file.") (defconst user/early-init-file (locate-user-emacs-file "early-init.el") "Location of user early-init file.") @@ -66,7 +68,7 @@ ;; ---------------------------------- ;; (defvar user/early-init-forms - '(";;; early-init.el --- Early initialization -*- lexical-binding: t; -*-" + `(";;; early-init.el --- Early initialization -*- lexical-binding: t; -*-" ";; This file is not part of GNU Emacs." @@ -100,7 +102,8 @@ ";; Configure GUI components before initial frame creation" (setq frame-inhibit-implied-resize t - default-frame-alist '((menu-bar-lines . 0) + default-frame-alist '((font . ,user/font) + (menu-bar-lines . 0) (tool-bar-lines . 0) (vertical-scroll-bars . nil) (background-color . "gray15") @@ -352,11 +355,6 @@ DOCSTRING is an optional form that is discarded upon expansion." ;; Filter out buffer-incompatible interactive commands by default (read-extended-command-predicate #'command-completion-default-include-p) - :custom-face - - ;; Default font - (default ((t (:family "Fira Code Regular" :height 100)))) - :bind ;; General binds