emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode b298842 094/496: Merge pull request #26 from ap


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode b298842 094/496: Merge pull request #26 from ap4y/electric_indent
Date: Sun, 29 Aug 2021 11:33:14 -0400 (EDT)

branch: elpa/swift-mode
commit b2988422b63e211d02cfefbeb9ebd0ddef0de384
Merge: cfbc318 86043c2
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]