How to configure packages, which have no (provide <PACKAGENAME>)
call in their source code?
Immediate problem: configure isearch
with use-package.
(Editing isearch.el
is not an option because it may break updates and may trigger heavy bug hunting)
Edit: answering Drews comment: use-package
can be used to cluster elisp code, which should belong to a package/library. The user is then able to write functions or set up keybindings, which are part of a users emacs configuration. Whith this technique it is possible to lazy load self written functions, or even redefine functions from a package after the package/library has been loaded. (Of course there are also other ways to do that but use-package is a nice Domain Specific Language for that kind of configuration).
By "configure" I mean writing a valid use-package
sexp which serves the purpose of changing emacs default behavior.
Yes, with "Editing" I meant changing the source code file isearch.el. Emacs is hackable after all.
M-x find-library RET isearch RET
and jump to the end of the file, I immediately find(provide 'isearch)
there.isearch.el
(which is not a package, BTW)? There's no reason torequire
isearch.el
, as it is loaded automatically. And why do you speak of "editing"isearch.el
- are you trying to change some of its code? Unclear question, so far.(provide 'isearch)
inisearch.el