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

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

[nongnu] elpa/swift-mode 86043c2 093/496: Define electric-indent charact


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 86043c2 093/496: Define electric-indent characters
Date: Sun, 29 Aug 2021 11:33:14 -0400 (EDT)

branch: elpa/swift-mode
commit 86043c26e6b90dfe170beddfaca3a26326a12c4c
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@pisem.net>

    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]