abstract: Associated to every Artin group is a cell complex, introduced by Salvetti, which is homotopy equivalent to the associated hyperplane complement. In the case of a right-angled Artin group A, the Salvetti complex is a K(A, 1)-space and its universal cover has a natural geometry as a CAT(0) cube complex. In joint work with M. Margolis, we study actions of right-angled Artin groups on more general CAT(0) cube complexes. We prove that in dimension 2, these actions are completely determined by their length functions. This generalizes a fundamental theorem of Morgan and Culler for free groups acting on trees.