Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a package after another one which doesn't provide itself #411

Closed
DamienCassou opened this issue Nov 25, 2016 · 1 comment
Closed

Comments

@DamienCassou
Copy link
Contributor

I would like use-package to load anzu only when isearch is loaded. I tried:

(use-package anzu
  :after (isearch)
  :diminish anzu-mode
  :bind (("M-%" . anzu-query-replace)
         ("C-M-%" . anzu-query-replace-regexp))
  :config
  (progn
    (global-anzu-mode +1)
    (define-key isearch-mode-map [remap isearch-query-replace] #'anzu-isearch-query-replace)
    (define-key isearch-mode-map [remap isearch-query-replace-regexp] #'anzu-isearch-query-replace-regexp)))

but it doesn't work and I guess that's because isearch doesn't have any (provide 'isearch) line (I've just sent a patch to bug-gnu-emacs). Is there any solution from use-package?

@npostavs
Copy link
Contributor

I would like use-package to load anzu only when isearch is loaded. I tried:

isearch is preloaded, so "only when isearch is loaded" means always.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants