branch: elpa/kotlin-mode
commit 666187a086c042e70b65b13ea83b34a493440d95
Merge: 1b6d311168 5d83221994
Author: Gregg Hernandez <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #33 from mikegolod/issue-32
    
    1x indent inside parenthesis
---
 kotlin-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index cf8e738f5c..50a355d3da 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -358,7 +358,7 @@
             ((looking-at "^[ \t]*)") ; line starts with )
              (save-excursion
                (kotlin-mode--prev-line)
-               (setq cur-indent (- (current-indentation) (* 2 
kotlin-tab-width))))
+               (setq cur-indent (- (current-indentation) kotlin-tab-width)))
              (if (< cur-indent 0)
                  (setq cur-indent 0)))
 
@@ -379,7 +379,7 @@
                         (setq not-indented nil))
 
                        ((looking-at ".*([ \t]*$") ; line ends with (
-                        (setq cur-indent (+ (current-indentation) (* 2 
kotlin-tab-width)))
+                        (setq cur-indent (+ (current-indentation) 
kotlin-tab-width))
                         (setq not-indented nil))
 
                        ((looking-at "^[ \t]*).*$") ; line starts with )

Reply via email to