diff --git a/init.el b/init.el index 6a5e89c..9f0fe42 100644 --- a/init.el +++ b/init.el @@ -1,9 +1,20 @@ ;;;; 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) (tool-bar-mode -1) -(toggle-scroll-bar -1) ;; Show colum number in status bar (column-number-mode +1) @@ -67,20 +78,3 @@ ;; Rainbow-Mode (show hex strings in color) (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)