Move font selection to early-init
This commit is contained in:
parent
af034bf172
commit
39861418b8
12
init.el
12
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/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.")
|
(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
|
(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."
|
";; This file is not part of GNU Emacs."
|
||||||
|
|
||||||
@ -100,7 +102,8 @@
|
|||||||
|
|
||||||
";; Configure GUI components before initial frame creation"
|
";; Configure GUI components before initial frame creation"
|
||||||
(setq frame-inhibit-implied-resize t
|
(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)
|
(tool-bar-lines . 0)
|
||||||
(vertical-scroll-bars . nil)
|
(vertical-scroll-bars . nil)
|
||||||
(background-color . "gray15")
|
(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
|
;; Filter out buffer-incompatible interactive commands by default
|
||||||
(read-extended-command-predicate #'command-completion-default-include-p)
|
(read-extended-command-predicate #'command-completion-default-include-p)
|
||||||
|
|
||||||
:custom-face
|
|
||||||
|
|
||||||
;; Default font
|
|
||||||
(default ((t (:family "Fira Code Regular" :height 100))))
|
|
||||||
|
|
||||||
:bind
|
:bind
|
||||||
|
|
||||||
;; General binds
|
;; General binds
|
||||||
|
Loading…
Reference in New Issue
Block a user