Function: copy-dir-locals-to-file-locals

copy-dir-locals-to-file-locals is an autoloaded, interactive and byte-compiled function defined in files-x.el.gz.

Signature

(copy-dir-locals-to-file-locals)

Documentation

Copy directory-local variables to the Local Variables list.

Probably introduced at or before Emacs version 23.2.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/files-x.el.gz
;;;###autoload
(defun copy-dir-locals-to-file-locals ()
  "Copy directory-local variables to the Local Variables list."
  (interactive)
  (dolist (elt dir-local-variables-alist)
    (add-file-local-variable (car elt) (cdr elt))))