  Charmonia, bound states of charm and anti-charm quarks, represent an
interesting probe for the study of Quantum Chromodynamics (QCD) since their
production involves both hard and soft energy scales. Several effective models
are available to describe the production of charmonia, but so far none have
been able to describe all experimental observables simultaneously. ALICE has
studied the production of charmonia in different collision systems at all
available LHC energies at both mid- and forward-rapidity down to zero
transverse momentum. In this contribution, different measurements performed in
proton--proton (pp) collisions are presented, namely
$p_{\text{T}}$-differential cross sections of inclusive J/$\psi$ and
$\psi(2\text{S})$, inclusive J/$\psi$ polarization measurements and the latest
results on correlations between inclusive J/$\psi$ and unidentified charged
hadrons. The results are also compared to model predictions.
