Function: editorconfig-set-local-variables

editorconfig-set-local-variables is a byte-compiled function defined in editorconfig.el.gz.

Signature

(editorconfig-set-local-variables PROPS)

Documentation

Set buffer variables according to EditorConfig PROPS.

Source Code

;; Defined in /usr/src/emacs/lisp/editorconfig.el.gz
(defun editorconfig-set-local-variables (props)
  "Set buffer variables according to EditorConfig PROPS."
  (pcase-dolist (`(,var . ,val) (editorconfig--get-local-variables props))
    (if (eq 'eval var)
        (eval val t)
      (when (editorconfig--should-set var)
        (set (make-local-variable var) val)))))