From c58c4e87629121f8ccc2e669c26b967105e93c81 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 10 Jan 2024 09:40:13 +0000 Subject: [PATCH] Use initial-frame-alist and default-frame-alist to configure frames Sets parameters for all frames consistently then Also allows some initial config (like size when running on floating wm) --- README.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 7d4e833..3e4067e 100644 --- a/README.org +++ b/README.org @@ -208,8 +208,13 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia ** Theme, font and nerd-icons #+begin_src emacs-lisp - (set-frame-parameter nil 'alpha-background 80) - (set-frame-font "JetBrainsMono Nerd Font-14") + (add-to-list 'initial-frame-alist '(width . 120)) + (add-to-list 'initial-frame-alist '(height . 80)) + (add-to-list 'initial-frame-alist '(alpha-background . 80)) + (add-to-list 'initial-frame-alist '(font . "JetBrainsMono Nerd Font-12")) + + (add-to-list 'default-frame-alist '(alpha-background . 80)) + (add-to-list 'default-frame-alist '(font . "JetBrainsMono Nerd Font-12")) ;; Theme (use-package modus-themes