From ae72f29d0408d3d2c80e8d7992df83fb5286a197 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Wed, 13 Sep 2023 15:57:56 +0200 Subject: [PATCH] emacs: Change how font is set --- home-manager/modules/emacs/config.org | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 7f83456..a58ac68 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -57,7 +57,7 @@ This sets some variables with my personal preferences for easy customization #+begin_src emacs-lisp (defvar my/default-font "Iosevka Nerd Font") (defvar my/variable-width-font "Iosevka Aile") - (defvar my/default-font-height 140) + (defvar my/default-font-height 13) (defvar my/default-font-weight 'normal) (defvar my/default-font-width 'normal) (defvar my/variable-width-font-height 1.1) @@ -395,6 +395,14 @@ I prefer the [[https://draculatheme.com][dracula theme]] Use Iosevka as font. #+begin_src emacs-lisp + (add-to-list 'default-frame-alist `(font . ,(format "%s=%d:weight=%s:width=%s" + my/default-font + my/default-font-height + my/default-font-weight + my/default-font-height))) +#+end_src + +#+begin_src emacs-lisp :tangle no (set-face-attribute 'default nil :family my/default-font :weight my/default-font-weight