Skip to content

Commit

Permalink
Fix isearch
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Feb 10, 2021
1 parent f642196 commit 0924567
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions window-purpose-fixes.el
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ This function should be advised around
(set-window-dedicated-p compilation-window old-window-dedicated-p))))


(defun purpose--fix-isearch ()
"Set `isearch--display-help-action'.
Prevents `isearch-describe-*' commands from bypassing purpose."
(with-eval-after-load 'isearch
(setq isearch--display-help-action '(purpose--action-function . nil))))


;;; Hydra's *LV* buffer should be ignored by Purpose
(defun purpose--fix-hydra-lv ()
Expand Down Expand Up @@ -266,6 +273,8 @@ are:
(unless (member 'compilation-next-error-function exclude)
(advice-add 'compilation-next-error-function
:around #'purpose--fix-compilation-next-error))
(unless (member 'isearch exclude)
(purpose--fix-isearch))
(unless (member 'lv exclude)
(purpose--fix-hydra-lv))
(unless (member 'helm exclude)
Expand Down

0 comments on commit 0924567

Please sign in to comment.