-
|
Minimal setup (require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(setq use-package-enable-imenu-support t)
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
;; Themeing: dark mode - light on dark
(set-foreground-color "white")
(set-background-color "black")
(use-package corfu
:ensure t
;; Intellisense-like completion
:init
(global-corfu-mode)
(corfu-popupinfo-mode)
:custom
(corfu-auto t)
(corfu-scroll-margin 2))Suspected problematic code: (defface corfu-default
'((((class color) (min-colors 88) (background dark)) :background "#191a1b")
(((class color) (min-colors 88) (background light)) :background "#f0f0f0")
(t :background "gray"))
"Default face, foreground and background colors used for the popup.")Expected: Easy enough to customize with '(corfu-default ((t (:background "#191a1b" :foreground "white"))))) |
Beta Was this translation helpful? Give feedback.
Answered by
minad
Feb 16, 2025
Replies: 1 comment 3 replies
-
|
The Corfu face only adjusts the background such that the background is different from the default black/white. However the default foreground should still be sufficiently different. Note that the face detects if the theme is a dark or light theme. Your recipe code is not proper themeing, since it makes it impossible to detect if the current theme is dark or light: (set-foreground-color "white")
(set-background-color "black")For well-made themes, I suggest to take a look at the modus-themes or the ef-themes. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


The problem might be that the color is not changed for all frames? You could try: