Commit Graph

14 Commits

Author SHA1 Message Date
Alastair Houghton
ef3823c58e [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.
2022-08-15 10:25:43 +01:00
Alastair Houghton
895bf266dd Fix tab size for Emacs users.
For some reason .dir-locals.el was setting tab-width to 2.  That's a Really
Bad Idea, because if somehow (as happened in my case) indent-tabs-mode was
't instead of nil like it should have been, Emacs will insert tabs instead
of spaces, and it'll *look* like it's doing the right thing.
2021-07-16 13:53:31 +01:00
Graydon Hoare
c6afed048b .dir-locals.el: add flycheck setting for c++14 2018-01-12 16:24:24 -08:00
Greg Parker
7b1dd3761f [emacs] Don't require tramp to be loaded. 2017-06-27 17:49:49 -07:00
Dave Abrahams
f46a5f943c [emacs support] Keep remote directories out of load-path
That can lead to frustratingly persistent attempts to reconnect to remote servers you're done with!
2017-03-21 23:13:37 -07:00
Dave Abrahams
62f3f140c8 [emacs-support] support use of fci-mode
We used to force whitespace-mode on for everything in the Swift project
so people see their 80-column violations.  I personally like
https://www.emacswiki.org/emacs/FillColumnIndicator better, so I changed
things such that I could reverse the decision made by .dir-locals.el:

  (add-hook 'prog-mode-hook (lambda () (fci-mode t) (whitespace-mode -1)))
2016-10-18 16:09:39 -07:00
Dave Abrahams
61f0245656 [emacs-support] More flymake support
Includes support for checking the standard library with flymake
TODO: flymake for test files
2016-10-10 17:24:21 -07:00
Dave Abrahams
2c597a7400 [emacs support] add dir-local: swift-basic-offset 2016-07-15 17:33:38 -07:00
Daniel Martín
1616fe896c Set column max to 80 for Emacs users 2016-07-13 19:42:05 +02:00
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
Dave Abrahams
3a6cd3dd36 [Emacs support] 80 column highlighting for .swift
For some reason whitespace-mode was only turned on for cc-mode
languages.  Swift code should fit in 80 columns, too!

Swift SVN r14880
2014-03-10 22:14:01 +00:00
Dave Abrahams
70a77e3dcb [Emacs support] Fix for first file opened
When visiting one of this project's C++ files for the first time in an
Emacs session, it wouldn't have loaded swift-project-settings.el in
time.  Setting c-file-style later in the list of directory locals fixes
this issue.  Also apply the same whitespace settings to objc-mode and
c-mode as c++-mode

Swift SVN r13632
2014-02-07 07:40:42 +00:00
Dave Abrahams
32f76c2fa7 [utils] Emacs: automatically insert LLVM headers
New files automatically get the LLVM header if you enable
auto-insert-mode.  You can also generate one explicitly in any file
using `M-x llvm-header'.  Along the way, factored settings specific to
the Swift project out of swift-mode.el and put them in
swift-project-settings.el

Swift SVN r13319
2014-02-02 23:20:15 +00:00
Dave Abrahams
75afc03146 Add project directory local variables for Emacs users
I've been carrying this file around in my working copy for months now;
it makes sure you have swift-mode loaded for .swift files and sets up
cc-mode for editing Swift's ObjC++ files in our project's style.

Swift SVN r10641
2013-11-21 21:49:57 +00:00