aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-02-20 14:41:47 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-02-20 14:41:47 +0100
commitcc3370f00108525d61c969e314174129143e7e6f (patch)
tree630201fd90d1744c8ef5b69e9c54b35ee3e587cd
parenta7789f7a54180b44e737ee1ca13fec58380b1e8e (diff)
chore: Add note about timezones and automatic theme switching
-rw-r--r--README8
1 files changed, 8 insertions, 0 deletions
diff --git a/README b/README
index 08d7166..4568080 100644
--- a/README
+++ b/README
@@ -40,6 +40,14 @@ Where =tailor.lisp= is a custom file that you should create relative to Nyxt's c
In addition, you should provide the extension options, explained in the following section.
+To ensure automatic theme switching works accurately both at startup and through the timers, you should have the following snippet in your configuration *before* the =nyxt-user= system definition shown above.
+
+#+begin_src lisp
+(local-time:reread-timezone-repository)
+(setf local-time:*default-timezone*
+ (local-time:find-timezone-by-location-name "<your_timezone>"))
+#+end_src
+
** Configuration
As mentioned, =nx-tailor= is just a layer above the =nyxt/theme= library, which is why its configuration is quite minimal.