[Emacs] Fix dir-locals.el.

dir-locals.el needs to `(defvar swift-project-directory)`, otherwise
we get an error from Emacs later on because the `let` has bound it as
the wrong kind of variable.
This commit is contained in:
Alastair Houghton
2022-08-15 10:25:43 +01:00
parent bf755cc3b7
commit ef3823c58e

View File

@@ -11,6 +11,7 @@
(add-to-list 'load-path
(concat this-directory "utils")
:append)
(defvar swift-project-directory)
(let ((swift-project-directory this-directory))
(require 'swift-project-settings)))
(set (make-local-variable 'swift-project-directory)