Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 26 additions & 30 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,47 +1,43 @@
;===--- .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 http://swift.org/LICENSE.txt for license information
; See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
;
;===----------------------------------------------------------------------===;
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((nil
(tab-width . 2)
(fill-column . 80)
(eval let* ((x (dir-locals-find-file default-directory))
(this-directory (if (listp x) (car x)
(file-name-directory x))))
(eval let*
((x (dir-locals-find-file default-directory))
(this-directory (if (listp x) (car x) (file-name-directory x))))
(unless (featurep 'swift-project-settings)
(add-to-list 'load-path (concat this-directory "utils") :append)
(add-to-list 'load-path
(concat this-directory "utils")
:append)
(let ((swift-project-directory this-directory))
(require 'swift-project-settings)))
(set (make-local-variable 'swift-project-directory) this-directory))
(c-file-style . "swift")
)
(require 'swift-project-settings)))
(set (make-local-variable 'swift-project-directory)
this-directory)
)
(tab-width . 2)
(fill-column . 80)
(c-file-style . "swift"))
(c++-mode
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode)))
(objc-mode
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode)))
(whitespace-style face lines indentation:space))
(c-mode
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode)))
(whitespace-style face lines indentation:space))
(objc-mode
(whitespace-style face lines indentation:space))
(prog-mode
(eval add-hook 'prog-mode-hook
(lambda nil
(whitespace-mode 1))
(not :APPEND)
:BUFFER-LOCAL))
(swift-mode
(swift-find-executable-fn . swift-project-executable-find)
(swift-syntax-check-fn . swift-project-swift-syntax-check)
(whitespace-style . (face lines indentation:space))
(eval . (whitespace-mode))
(whitespace-style face lines indentation:space)
(swift-basic-offset . 2)
(tab-always-indent . t)))



;; Local Variables:
;; eval: (whitespace-mode -1)
;; End: