diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-04-25 19:26:23 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-04-25 19:26:23 +0200 |
commit | ba30376998690390d4cc50e48c45a9febaa3a281 (patch) | |
tree | ab49e22749d53dff1c1b4c24ce84baa733fd8363 | |
parent | c25c023d135bed4274c9f1b03cf0ada22108d0cb (diff) |
Move theme configuration to separate file
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-appearance.el | 11 | ||||
-rw-r--r-- | lisp/init-theme.el | 12 |
3 files changed, 13 insertions, 11 deletions
@@ -21,6 +21,7 @@ ;; appearance (maybe-require 'init-appearance) +(maybe-require 'init-theme) ;; behaviour (maybe-require 'init-sane-defaults) diff --git a/lisp/init-appearance.el b/lisp/init-appearance.el index 44364d0..bebb698 100644 --- a/lisp/init-appearance.el +++ b/lisp/init-appearance.el @@ -22,17 +22,6 @@ :config (global-hl-line-mode 1)) -;; set theme -(use-package doom-themes - :if (display-graphic-p) - :config - (load-theme 'doom-one t) - - ;; make title bar use same style as theme on mac - (when (eq system-type 'darwin) - (setq default-frame-alist '((ns-appearance . dark) - (ns-transparent-title-bar . t))))) - ;; highlight matching parentheses (use-package paren :ensure nil ;; package is bundled with emacs diff --git a/lisp/init-theme.el b/lisp/init-theme.el new file mode 100644 index 0000000..a0813f1 --- /dev/null +++ b/lisp/init-theme.el @@ -0,0 +1,12 @@ +;; set theme +(use-package doom-themes + :if (display-graphic-p) + :config + (load-theme 'doom-one t) + + ;; make title bar use same style as theme on mac + (when (eq system-type 'darwin) + (setq default-frame-alist '((ns-appearance . dark) + (ns-transparent-title-bar . t))))) + +(provide 'init-theme) |