AdaptiveMCMC defining prior and multivariate parameters

I’m trying to make a start on making a MCMC chain using AdaptiveMCMC. I’ve figured out a function which returns a log-likelihood given a specific set of parameters (a vector of parameters). I’m not quite sure how this goes into the adaptive_rwm function because the function seems to require a log_p function which calculates the log-likelihood to have one set of inputs (which I presume to be the parameters). Do I just make my data into global variables and use them that way?

Also, how does one define your priors for the parameters? I have made priors using Distributions.jl, but I’m not sure how that applies to either the adaptive_rwm function or the log_p function.