Skip to content

Commit dbb576b

Browse files
committed
defadvice -> define-advice
1 parent 8ed82b4 commit dbb576b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

boon-core.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,13 @@ the buffer changes."
394394

395395
(add-hook 'window-selection-change-functions #'boon-reset-state-for-switchw)
396396

397-
(defadvice isearch-exit (after boon-isearch-set-search activate compile)
397+
(declare-function boon-hl-regexp (regexp &optional face))
398+
(define-advice isearch-exit (:after () boon-set-search)
398399
"After isearch, highlight the search term."
399400
(boon-hl-regexp (if isearch-regexp isearch-string (regexp-quote isearch-string))))
400401

401-
(defadvice swiper--action (after boon-swiper-set-search activate compile)
402-
"After swiper, highlight the search term."
402+
(define-advice swiper--action (:after (_x) boon-set-search)
403+
"After isearch, highlight the search term."
403404
(boon-hl-regexp (car regexp-search-ring)))
404405

405406
(provide 'boon-core)

0 commit comments

Comments
 (0)