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)
This commit is contained in:
Evie Litherland-Smith 2024-01-10 09:40:13 +00:00
parent b22c46042c
commit c58c4e8762

View file

@ -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