refactor!(ophints): replace volatile-highlights w/ goggles

BREAKING CHANGE: This replaces volatile-highlights.el with goggles.el,
since the former is no longer maintained and the latter is a much
simpler implementation for the same functionality. No adjustments are
needed for end-users to adopt this change, unless they have
volatile-highlights-specific configuration.

Ref: https://github.com/orgs/doomemacs/projects/5/views/9?pane=issue&itemId=326184
Close: #7810
Co-authored-by: Dev380 <Dev380@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2024-06-23 15:46:34 -04:00
parent 5c50b65e95
commit 3431ddd44c
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 12 additions and 11 deletions

View file

@ -63,11 +63,11 @@
:switch evil-goggles-enable-join
:advice evil-goggles--join-advice))))
(use-package! volatile-highlights
(use-package! goggles
:unless (modulep! :editor evil)
:hook (doom-first-input . volatile-highlights-mode)
:hook ((prog-mode text-mode) . goggles-mode)
:config
(after! undo-fu
(vhl/define-extension 'undo-fu 'undo-fu-only-undo 'undo-fu-only-redo)
(vhl/install-extension 'undo-fu)))
(goggles-define +goggles-general-undo undo) ; goggles only supports `primitive-undo' by default
(goggles-define +goggles-register-paste insert-register)
(goggles-define +goggles-kill-word backward-kill-word kill-word)
(goggles-define +goggles-undo-fu undo-fu-only-undo undo-fu-only-redo))