From fe6a59ea558971a2c3e532e922b4fc4232bc1719 Mon Sep 17 00:00:00 2001 From: Hunt Date: Sat, 7 Jun 2025 17:23:25 -0700 Subject: Add emacs config --- dots/theme/.config/theme/alacritty.toml | 4 ---- dots/theme/.config/theme/alacritty.toml.j2 | 19 +++++++++++++++++++ dots/theme/.config/theme/emacs.el.j2 | 4 ++++ 3 files changed, 23 insertions(+), 4 deletions(-) delete mode 100644 dots/theme/.config/theme/alacritty.toml create mode 100644 dots/theme/.config/theme/alacritty.toml.j2 create mode 100644 dots/theme/.config/theme/emacs.el.j2 (limited to 'dots/theme/.config') diff --git a/dots/theme/.config/theme/alacritty.toml b/dots/theme/.config/theme/alacritty.toml deleted file mode 100644 index d3c158b..0000000 --- a/dots/theme/.config/theme/alacritty.toml +++ /dev/null @@ -1,4 +0,0 @@ -[general] -import = [ - "~/.config/alacritty/alacritty-theme/themes/{{THEME}}.toml" -] diff --git a/dots/theme/.config/theme/alacritty.toml.j2 b/dots/theme/.config/theme/alacritty.toml.j2 new file mode 100644 index 0000000..682bf05 --- /dev/null +++ b/dots/theme/.config/theme/alacritty.toml.j2 @@ -0,0 +1,19 @@ +[font] +size = {{ theme.alacritty.font.size }}.0 + +[font.bold] +family = "{{ theme.alacritty.font.name }}" +style = "Bold" + +[font.italic] +family = "{{ theme.alacritty.font.name }}" +style = "Italic" + +[font.normal] +family = "{{ theme.alacritty.font.name }}" +style = "Regular" + +[general] +import = [ + "~/.config/alacritty/alacritty-theme/themes/{{ theme.alacritty.name }}.toml" +] diff --git a/dots/theme/.config/theme/emacs.el.j2 b/dots/theme/.config/theme/emacs.el.j2 new file mode 100644 index 0000000..bf24589 --- /dev/null +++ b/dots/theme/.config/theme/emacs.el.j2 @@ -0,0 +1,4 @@ +(load-theme {{ theme.emacs.symbol }} t) +(let ((font "{{ theme.emacs.font.name }}-{{ theme.emacs.font.size }}:style=Regular")) + (set-face-attribute 'default nil :font font) + (set-frame-font font nil t)) -- cgit v1.2.3-70-g09d2