branch: elpa/evil-anzu
commit 012bbb192f8a9c73598cbfa8b452f55a66151e5a
Author: CeleritasCelery <[email protected]>
Commit: CeleritasCelery <[email protected]>
add unload feature function
---
evil-anzu.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/evil-anzu.el b/evil-anzu.el
index da040e4d7d..f404f6770b 100644
--- a/evil-anzu.el
+++ b/evil-anzu.el
@@ -60,6 +60,14 @@ If PATTERN is not specified the current global pattern
`evil-ex-search-pattern'
(advice-add 'evil-flash-hook :after #'evil-anzu-prevent-flicker)
(advice-add 'evil-ex-delete-hl :after #'evil-anzu-reset)
+(defun evil-anzu-unload-function ()
+ "unload evil anzu"
+ (advice-remove 'evil-search #'evil-anzu-start-search)
+ (advice-remove 'evil-ex-find-next #'evil-anzu-search-next)
+ (advice-remove 'evil-flash-hook #'evil-anzu-prevent-flicker)
+ (advice-remove 'evil-ex-delete-hl #'evil-anzu-reset)
+ nil)
+
(provide 'evil-anzu)
;;; evil-anzu.el ends here