summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-28 20:48:28 +0100
committerjao <jao@gnu.org>2022-08-28 20:48:28 +0100
commitf53a06ffe4e02d0e5cf49cd378806ecb0706d062 (patch)
tree3dd066a10098dd2df4fb2246b4b9717cab4308fa
parent23ba5da4c27db9514159a4b9088b2a45c3bc8acc (diff)
downloadelibs-f53a06ffe4e02d0e5cf49cd378806ecb0706d062.tar.gz
elibs-f53a06ffe4e02d0e5cf49cd378806ecb0706d062.tar.bz2
frame-background-mode (not correctly detected for foot)
-rw-r--r--init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.el b/init.el
index dbe6e43..123ab66 100644
--- a/init.el
+++ b/init.el
@@ -327,6 +327,9 @@
(defun jao-colors-scheme-dark-p ()
(equal "dark" (getenv "JAO_COLOR_SCHEME")))
+(customize-set-variable 'frame-background-mode
+ (if (jao-colors-scheme-dark-p) 'dark 'light))
+
(setq custom-theme-directory
(expand-file-name "lib/themes" jao-emacs-dir))