branch: elpa/swift-mode commit b2988422b63e211d02cfefbeb9ebd0ddef0de384 Merge: cfbc318 86043c2 Author: Bozhidar Batsov <bozhi...@batsov.com> Commit: Bozhidar Batsov <bozhi...@batsov.com>
Merge pull request #26 from ap4y/electric_indent Define electric-indent characters --- swift-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swift-mode.el b/swift-mode.el index 6c5a4a3..a53a371 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -455,6 +455,8 @@ You can send text to the REPL process from other buffers containing source. (setq-local comment-end "") (setq-local tab-width swift-indent-offset) (setq-local indent-tabs-mode nil) + (setq-local electric-indent-chars + (append '(?. ?, ?: ?\) ?\] ?\}) electric-indent-chars)) (setq-local indent-line-function 'swift-indent-line)) ;;;###autoload