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
  • 01:23 (UTC -04:00)
View GitHub Profile
@wroyca
wroyca / which-key-prefix-descriptions.el
Created May 3, 2025 23:39 — forked from mmarshall540/which-key-prefix-descriptions.el
Missing Which-key Prefix descriptions
;; By default, Which-key doesn't give much help for prefix-keys. It
;; either shows the generic description, "+prefix", or the name of a
;; prefix-command, which usually isn't as descriptive as we'd like.
;;
;; Here are some descriptions for the default bindings in `global-map'
;; and `org-mode-map'.
(which-key-add-key-based-replacements
"<f1> 4" "help-other-win"
"<f1>" "help"
@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.