forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dir-locals.el
53 lines (51 loc) · 1.84 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
45
46
47
48
49
50
51
52
53
;===--- .dir-locals.el ---------------------------------------------------===;
;
; This source file is part of the Swift.org open source project
;
; Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
; Licensed under Apache License v2.0 with Runtime Library Exception
;
; See https://swift.org/LICENSE.txt for license information
; See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
;
;===----------------------------------------------------------------------===;
;;; Directory Local Variables
;;; See Info node `(emacs) Directory Variables' for more information.
((nil
(tab-width . 2)
(eval .
;; Load the Swift project's settings. To suppress this action
;; you can put "(provide 'swift-project-settings)" in your
;; .emacs
(unless (featurep 'swift-project-settings)
;; Make sure the project's own utils directory is in the
;; load path, but don't override any one the user might have
;; set up.
(add-to-list
'load-path
(concat
(let ((dlff (dir-locals-find-file default-directory)))
(if (listp dlff) (car dlff) (file-name-directory dlff)))
"utils")
:append)
;; Load our project's settings -- indirectly brings in swift-mode
(require 'swift-project-settings)))
(c-file-style . "swift")
)
(c++-mode
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode)))
(swift-mode
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode)))
(objc-mode
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode)))
(c-mode
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode)))
(swift-mode
(tab-always-indent . t)))
;; Local Variables:
;; eval: (whitespace-mode -1)
;; End: