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:
parent
5c50b65e95
commit
3431ddd44c
3 changed files with 12 additions and 11 deletions
|
@ -5,10 +5,11 @@
|
|||
|
||||
* Description :unfold:
|
||||
This module provides op-hints (operation hinting), i.e. visual feedback for
|
||||
certain operations. It highlights regions of text that the last operation (like
|
||||
yank) acted on.
|
||||
certain editing operations. It highlights regions of text that the last
|
||||
operation (like yank) acted on.
|
||||
|
||||
Uses [[doom-package:evil-goggles]] for evil users and [[doom-package:volatile-highlights]] otherwise.
|
||||
Uses [[doom-package:evil-goggles]] for evil users and [[doom-package:goggles]]
|
||||
otherwise.
|
||||
|
||||
** Maintainers
|
||||
- [[doom-user:][@hlissner]]
|
||||
|
@ -20,7 +21,7 @@ Uses [[doom-package:evil-goggles]] for evil users and [[doom-package:volatile-hi
|
|||
|
||||
** Packages
|
||||
- [[doom-package:evil-goggles]] if [[doom-module::editor evil]]
|
||||
- [[doom-package:volatile-highlights]] unless [[doom-module::editor evil]]
|
||||
- [[doom-package:goggles]] unless [[doom-module::editor evil]]
|
||||
|
||||
** Hacks
|
||||
/No hacks documented for this module./
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
|
||||
(if (modulep! :editor evil)
|
||||
(package! evil-goggles :pin "34ca276a85f615d2b45e714c9f8b5875bcb676f3")
|
||||
(package! volatile-highlights :pin "fcf6e2778454ce514c189a7d1fe70e03ad81c325"))
|
||||
(package! goggles :pin "41d3669d7ae7b73bd39d298e5373ece48b656ce3"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue