/
.dir-locals.el
44 lines (43 loc) · 2.09 KB
/
.dir-locals.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
(("InsetLabelExample/InsetLabelExampleTests"
. ((swift-mode
. ((flycheck-swift3-conditional-compilation-flags . ("DISABLE_TESTABLE"))
(eval . (add-to-list
'flycheck-swift3-framework-search-paths
(expand-file-name
"Platforms/iPhoneOS.platform/Developer/Library/Frameworks"
(getenv "DEVELOPER_DIR"))))
(eval . (set 'flycheck-swift3-inputs
(append library-sources example-sources)))))))
("InsetLabelExample/InsetLabelExample"
. ((swift-mode
. ((flycheck-swift3-module-name . "InsetLabelExample")
(eval . (set 'flycheck-swift3-inputs
(append library-sources example-sources)))))))
("InsetLabel"
. ((swift-mode
. ((eval . (set 'flycheck-swift3-inputs library-sources))))))
(swift-mode
. ((flycheck-swift3-xcrun-sdk . "iphoneos")
(flycheck-swift3-target . "arm64-apple-ios9")
(eval . (set (make-local-variable 'library-root)
(expand-file-name "InsetLabel" project-dir)))
(eval . (set (make-local-variable 'library-sources)
(directory-files-recursively library-root
"^[^.].*\\.swift\\'")))
(eval . (set (make-local-variable 'example-root)
(expand-file-name "InsetLabelExample/InsetLabelExample"
project-dir)))
(eval . (set (make-local-variable 'example-sources)
(directory-files-recursively example-root
"^[^.].*\\.swift\\'")))))
(nil
. ((eval . (setenv "DEVELOPER_DIR"
"/Applications/Xcode.app/Contents/Developer"))
(fill-column . 80)
(whitespace-style . (face lines indentation:space))
(eval . (set (make-local-variable 'project-dir)
(file-name-directory
(let ((d (or (dir-locals-find-file ".") default-directory)))
(if (stringp d) d (car d)))))))))