Function: add-dir-local-variable

Add directory-local VARIABLE with its VALUE and MODE to .dir-locals.el.

(fn MODE VARIABLE VALUE)