aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Ballou <kb@devnulllabs.io>2021-05-17 21:35:49 -0600
committerKenny Ballou <kb@devnulllabs.io>2021-05-21 11:54:42 -0600
commitc4bb2c95a45ea59185b01ca243bda3c7c4b19b85 (patch)
tree00d13c2bf0ae223e4e342580d04ae63294335e32
parent732d09a99bd6e7b85d7bf789bc1701ace4cc2103 (diff)
downloaddotfiles-c4bb2c95a45ea59185b01ca243bda3c7c4b19b85.tar.gz
dotfiles-c4bb2c95a45ea59185b01ca243bda3c7c4b19b85.tar.xz
emacs/xresources: update/set emacs default font
Default to DejaVu Sans Mono. Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
-rw-r--r--config/emacs/emacs.d/early-init.el8
-rw-r--r--config/xresources/default.nix2
2 files changed, 9 insertions, 1 deletions
diff --git a/config/emacs/emacs.d/early-init.el b/config/emacs/emacs.d/early-init.el
index 4f4f5192..d370cd43 100644
--- a/config/emacs/emacs.d/early-init.el
+++ b/config/emacs/emacs.d/early-init.el
@@ -114,7 +114,13 @@ https://git.sr.ht/~vdemeester/home/tree/master/item/tools/emacs/early-init.el#L2
(add-hook 'contrib/after-load-theme-hook 'vde/modus-operandi-custom)
(kb/modus-operandi)
-(defconst font-height 130
+(set-face-attribute 'default nil
+ :family "DejaVu Sans Mono"
+ :height 110
+ :weight 'normal
+ :width 'normal)
+
+(defconst font-height 110
"Default font-height to use.")
(defconst font-family-mono "DejaVu Mono"
"Default monospace font-family to use.")
diff --git a/config/xresources/default.nix b/config/xresources/default.nix
index 26acee89..ade919af 100644
--- a/config/xresources/default.nix
+++ b/config/xresources/default.nix
@@ -7,6 +7,8 @@
"xft.lcdfilter" = "lcddefault";
"xft.rgba" = "rgb";
"Emacs*toolBar" = 0;
+ "Emacs.font" = "DejaVu Sans Mono:pixelsize=13";
+ "Emacs.FontBackend" = "xft";
"Xterm*faceName" = "dejavu sans mono";
};
}