-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual bell doesn't work with solaire-mode #733
Comments
I can confirm it only occurs on 29. I found these comments
Not sure whether it's an issue of |
My workaround: (defun doom-themes-visual-bell-fn ()
"Blink the mode-line red briefly. Set `ring-bell-function' to this to use it."
(let* ((buf (current-buffer))
(cookies `(,(face-remap-add-relative 'mode-line-active
'doom-themes-visual-bell)
,(face-remap-add-relative 'mode-line
'doom-themes-visual-bell))))
(force-mode-line-update)
(run-with-timer 0.15 nil
(lambda ()
(with-current-buffer buf
(mapc #'face-remap-remove-relative cookies)
(force-mode-line-update)))))) |
ping kindly... |
Update the workaround: (defun my-doom-themes-visual-bell-fn ()
"Blink the mode-line red briefly. Set `ring-bell-function' to this to use it."
(let ((buf (current-buffer))
(cookies (mapcar (lambda (face)
(face-remap-add-relative face 'doom-themes-visual-bell))
(if (facep 'mode-line-active)
'(mode-line-active solaire-mode-line-active-face)
'(mode-line solaire-mode-line-face)))))
(force-mode-line-update)
(run-with-timer 0.15 nil
(lambda ()
(with-current-buffer buf
(mapc #'face-remap-remove-relative cookies)
(force-mode-line-update))))))
(advice-add #'doom-themes-visual-bell-fn :override #'my-doom-themes-visual-bell-fn) |
Theme(s)
All themes (base)
What were you expecting?
visual bell should work with
solaire-mode
.What actually happened?
visual bell doesn't work if
solaire-mode
is enabled in the buffer.Steps to reproduce
doom-themes-visual-bell-config
.C-g
. Visual bell (red flashing) appears.solaire-mode
.C-g
. Nothing happens in the mode-line.Operating system
All
Emacs version
29
Installed commit of doom-themes
20220619.2105
The text was updated successfully, but these errors were encountered: