Suppose that you want to run some custom initialization code whenever a particular package is loaded. For example, perhaps you want to configure some display options for a plotting package.
The best solution I can think of is to define a function in startup.jl that uses
@eval to load the package and run the initialization code. Is there a better way?