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

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

[nongnu] elpa/scala-mode 6116127 042/217: Updated README.md


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode 6116127 042/217: Updated README.md
Date: Sun, 29 Aug 2021 11:30:40 -0400 (EDT)

branch: elpa/scala-mode
commit 61161278ab6f46361d6fb279d0327c9f7373028b
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@yahoo.com>

    Updated README.md
---
 README.md | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/README.md b/README.md
index b861afc..7eef185 100644
--- a/README.md
+++ b/README.md
@@ -34,8 +34,12 @@ are having trouble with colors, try setting the 
customization variable
 
 ## Indenting modes
 
-You can configure the mode from the mode customization menu (use M-x
-customize-mode when in scala-mode).
+Where four developers meet, there are four opinions on how code should
+be indented. Luckily scala-mode already supports 2^4 different
+ways of indenting.
+
+You can configure the scala-mode indentation from the mode
+customization menu (use M-x customize-mode when in scala-mode).
 
 ### Run-on lines (scala-indent:default-run-on-strategy)
 
@@ -80,9 +84,9 @@ will toggle between the modes.
 
 ### Value expressions (scala-indent:indent-value-expression)
 
-When this variable is set to t (default), blocks in value expressions
-will be indented one extra step to make the 'val', 'var' or 'def'
-stand out. For example:
+When this variable is set to non-nil (default), blocks in value
+expressions will be indented one extra step to make the 'val', 'var'
+or 'def' stand out. For example:
 
 ```
 val x = try {
@@ -108,7 +112,7 @@ val x = try {
 
 ### Parameter lists (scala-indent:align-parameters)
 
-When this variable is set to 't' (default), parameters and run-on
+When this variable is set to non-nil (default), parameters and run-on
 lines in parameter lists will always align under and acording to the
 first parameter.
 
@@ -132,7 +136,7 @@ val y = List( "Alpha", "Bravo",
 
 ### Forms (scala-indent:align-forms)
 
-When this variable is set to 't' (default), `if`, `for` and `try`
+When this variable is set to non-nil (default), `if`, `for` and `try`
 forms are aligned.
 
 ```
@@ -144,7 +148,7 @@ val x = if (kala)
           zot
 
 val x = try "1".toInt
-        catch { case e => 0)
+        catch { case e => 0}
         finally { println("hello") }
 
 val xs = for (i <- 1 to 10)
@@ -162,7 +166,7 @@ val x = if (kala)
     zot
 
 val x = try "1".toInt
-  catch { case e => 0)
+  catch { case e => 0}
   finally { println("hello") }
 
 val xs = for (i <- 1 to 10)



reply via email to

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