From 14bb16cfae01313969e6a1ea8d6cae0cbaabe932 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Wed, 14 Aug 2024 14:22:55 -0700 Subject: [PATCH] fix(nix): set .Xresources font hinting for emacs Signed-off-by: Lucas Sta Maria --- .emacs.d/include/general.el | 2 +- nix/hosts/framework/home.nix | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.emacs.d/include/general.el b/.emacs.d/include/general.el index b3356b9..fb450ef 100644 --- a/.emacs.d/include/general.el +++ b/.emacs.d/include/general.el @@ -79,7 +79,7 @@ (custom-set-faces '(region ((t (:inherit nano-subtle :background "#EBE5F5")))) '(lazy-highlight ((t (:inherit region)))) - `(variable-pitch ((t (:family ,priime-variable-font :height 125 :weight regular)))) + `(variable-pitch ((t (:inherit default :family ,priime-variable-font :height 125 :weight regular)))) `(fixed-pitch ((t (:family ,priime-fixed-font :height ,priime-fixed-height :inherit nil)))) `(shr-text ((t (:inherit variable-pitch-text :family ,priime-variable-font))))) (set-face-attribute 'italic nil diff --git a/nix/hosts/framework/home.nix b/nix/hosts/framework/home.nix index 1f1c53b..7d9abdf 100644 --- a/nix/hosts/framework/home.nix +++ b/nix/hosts/framework/home.nix @@ -88,6 +88,11 @@ pythonPackages = with pkgs.python312Packages; [ python-lsp-server ]; in packages ++ emacsPackages ++ pythonPackages; + xresources.properties = { + "Xft.hinting" = 1; + "Xft.hintstyle" = "hintslight"; + }; + ### Services # Compositor