Skip to content

Commit

Permalink
[Emacs] Fix dir-locals.el.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
al45tair committed Aug 15, 2022
1 parent bf755cc commit ef3823c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef3823c

Please sign in to comment.