From 666490c13f3763d1e39641a5619034d694b9360a Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 19 Jul 2020 20:54:56 +0200 Subject: [PATCH] Map light/dark theme toggle to SPC t t --- +ui.el | 9 +++++++++ packages.el | 1 + 2 files changed, 10 insertions(+) diff --git a/+ui.el b/+ui.el index 3d25ed3..9080506 100644 --- a/+ui.el +++ b/+ui.el @@ -23,3 +23,12 @@ ;; Shrink minibuffer (after! ivy (setq ivy-height 10)) +;; Switch between light and dark theme +(after! heaven-and-hell + (setq heaven-and-hell-themes + '((light . doom-nord-light) + (dark . doom-nord))) + (setq heaven-and-hell-load-theme-no-confirm t) + (map! + :leader "t t" 'heaven-and-hell-toggle-theme)) +(add-hook 'after-init-hook 'heaven-and-hell-init-hook) diff --git a/packages.el b/packages.el index c9a00e9..2f6d83f 100644 --- a/packages.el +++ b/packages.el @@ -6,3 +6,4 @@ ;; (package! another-package :recipe (:host github :repo "username/repo")) ;; (package! builtin-package :disable t) (package! org-super-agenda) +(package! heaven-and-hell)