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:
parent
b22c46042c
commit
c58c4e8762
|
@ -208,8 +208,13 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
|
||||||
|
|
||||||
** Theme, font and nerd-icons
|
** Theme, font and nerd-icons
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(set-frame-parameter nil 'alpha-background 80)
|
(add-to-list 'initial-frame-alist '(width . 120))
|
||||||
(set-frame-font "JetBrainsMono Nerd Font-14")
|
(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
|
;; Theme
|
||||||
(use-package modus-themes
|
(use-package modus-themes
|
||||||
|
|
Loading…
Reference in a new issue