Make sure theme loads in new frames

This commit is contained in:
outfoxxed 2022-11-28 15:38:20 -08:00
parent 9d92b4f058
commit 1084109b9f
No known key found for this signature in database
GPG key ID: 5775F651AC84FFE6

32
init.el
View file

@ -1,9 +1,20 @@
;;;; Appearance ;;;; Appearance
;; Hide ribbon, menu bar, and scroll bars (defun apply-appearance ()
;; Set theme
(load-theme 'my-theme +1)
;; Hide GTK scroll bar
(toggle-scroll-bar -1))
(apply-appearance)
(add-hook 'after-make-frame-functions
(lambda (frame)
(with-selected-frame frame
(apply-appearance))))
;; Hide ribbon, menu bar
(menu-bar-mode -1) (menu-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
(toggle-scroll-bar -1)
;; Show colum number in status bar ;; Show colum number in status bar
(column-number-mode +1) (column-number-mode +1)
@ -67,20 +78,3 @@
;; Rainbow-Mode (show hex strings in color) ;; Rainbow-Mode (show hex strings in color)
(use-package rainbow-mode) (use-package rainbow-mode)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("5abd9e0076c5e1a0c81d963040b81fb58b986006c2b0c472b0afb985fe704b87" default)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; Set theme
(load-theme 'my-theme)