Minor modes for editing slow down Helpful startup
Context: I'm (still) using parinfer-mode, which is quite slow for large files. When looking up definitions in large files like org.el or flycheck.el, the slow minor mode ends up being run even though it is irrelevent for Helpful. This applies to any slow functions that are only for editing.
It would be ideal if we could somehow know a minor mode is for editing and does not need to be run when Helpful opens a file to read the definition of a symbol. This is, however, kind of impossible.
Another option might be to locally set emacs-lisp-mode-hook to nil in helpful--definition, but this also makes it impossible to run emacs lisp-specific highlighting minor modes (like lisp-extra-font-lock-mode) and have them show up in Helpful.
Yet another option would be to add a user option containing functions to remove from emacs-lisp-mode-hook when Helpful reads the file, but I'm not sure which is the best approach.