Skip to content

Instantly share code, notes, and snippets.

View wroyca's full-sized avatar
💭
I may be slow to respond.

William Roy wroyca

💭
I may be slow to respond.
  • Canada
  • 23:53 (UTC -04:00)
View GitHub Profile
@wroyca
wroyca / appearance-control-sequences.el
Last active April 30, 2025 16:09
Synchronizes Emacs' background color with the terminal background by using VT100 control sequences
;;; appearance-control-sequences.el --- Terminal control sequence integration -*- lexical-binding: t -*-
;;; Commentary:
;;
;; This module synchronizes Emacs' background color with the terminal background
;; by using VT100 control sequences. It supports both setting the background
;; color (using the "\e]11;" sequence) and resetting it on exit (using "\e]111;"
;; if available, or restoring the original color otherwise).
;;
@wroyca
wroyca / appearance.el
Last active April 18, 2026 17:03
Automatic synchronization between Emacs themes and system appearance settings (light/dark mode) via D-Bus.
;;; appearance.el --- System theme integration via D-Bus -*- lexical-binding: t -*-
;;; Commentary:
;;
;; This module provides automatic synchronization between Emacs themes
;; and the system appearance settings (light/dark mode) via D-Bus.
;;
;; NOTE: This *only* works with desktop environments that support the
;; org.freedesktop.appearance portal interface.