[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scala-mode 98d22a5 099/217: Added programming languages to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scala-mode 98d22a5 099/217: Added programming languages to README.md code |
Date: |
Sun, 29 Aug 2021 11:30:51 -0400 (EDT) |
branch: elpa/scala-mode
commit 98d22a5697dfafc7c1d1ad598abbaf3e94f7f0c0
Author: Heikki Vesalainen <heikki.vesalainen@iki.fi>
Commit: Heikki Vesalainen <heikki.vesalainen@iki.fi>
Added programming languages to README.md code
---
README.md | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index c6c274f..4f02bc9 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ to the load-path and then to require it. For more information
regarding
if such a definition already exists, ensure that it contains
the MELPA declaration
- ```
+ ```lisp
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
@@ -56,7 +56,7 @@ to the load-path and then to require it. For more information
regarding
Include the following in your Emacs config file. If you have been
using the old scala-mode, make sure it is no longer in *load-path*.
- ```
+ ```lisp
(add-to-list 'load-path "/path/to/scala-mode2/")
(require 'scala-mode2)
```
@@ -84,7 +84,7 @@ and the **eager** for strictly functional style. A third mode
called
The difference between the modes is how they treat run-on lines. For
example, the *eager* mode will indent *map* in the following code
-```
+```scala
val x = List(1, 2, 3)
map(x => x + 1)
```
@@ -92,7 +92,7 @@ val x = List(1, 2, 3)
The *operators* and *eager* modes will indent the second row in the
following code, as the first line ends with an operator character.
-```
+```scala
val x = 20 +
21
```
@@ -102,7 +102,7 @@ case. However, all three modes will indent the second line
in these
examples as it is clear that the first line cannot terminate a statement
(see the *Scala Language Specification 2.9*, section 1.2).
-```
+```scala
val x = List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9).
map (x => x + 1) // last token of previous line cannot terminate a statement
@@ -113,7 +113,7 @@ val y = (List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
You can use empty lines in the *eager* mode to stop it from indenting a
line. For example
-```
+```scala
val x = foo("bar")
("zot", "kala") // indented as curry
@@ -130,7 +130,7 @@ line will toggle between the modes.
When this variable is set to *nil* (default), body of a value
expressions will be indented in the traditional way.
-```
+```scala
val x = try {
some()
} catch {
@@ -144,7 +144,7 @@ However, when the variable is set to *t*, the body will be
indented
one extra step to make the *val*, *var* or *def* stand out. For
example:
-```
+```scala
val x = try {
some()
} catch {
@@ -160,7 +160,7 @@ When this variable is set to *nil* (default), parameters
and run-on
lines in parameter lists will not align under or acording to the
first parameter.
-```
+```scala
val y = List( "Alpha", "Bravo",
"Charlie" )
@@ -170,7 +170,7 @@ val x = equals(List(1,2,3) map (x =>
When the variable is set to *t*, the same will be indented as:
-```
+```scala
val y = List( "Alpha", "Bravo",
"Charlie" )
@@ -183,7 +183,7 @@ val x = equals(List(1,2,3) map (x =>
When this variable is set to *nil* (default), *if*, *for* and *try*
forms are not aligned specially.
-```
+```scala
val x = if (kala)
foo
else if (koira)
@@ -201,7 +201,7 @@ yield i
When the variable is set to *t*, the same will be indented as:
-```
+```scala
val x = if (kala)
foo
else if (koira)
- [nongnu] elpa/scala-mode 338ff73 060/217: Changed the indent defaults, closes #19, (continued)
- [nongnu] elpa/scala-mode 338ff73 060/217: Changed the indent defaults, closes #19, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 6c257f6 057/217: Enhanced support for comments and multi-line strings, including, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 68ca175 056/217: Fixes #20, the cons bug (a :: b :: Nil) as well as improving some of, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 78fff40 039/217: scala-indent:align-forms customization variable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode f61e32d 047/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 0991658 051/217: Fixes #17: string syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 3174f4c 048/217: Update README.md clone to be a valid command., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode a78716d 046/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode ac13b94 061/217: post-self-insert-hooks, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 2201b1c 092/217: Interact nicely with global-font-lock-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 98d22a5 099/217: Added programming languages to README.md code,
ELPA Syncer <=
- [nongnu] elpa/scala-mode 453c012 106/217: fixed bug in string escapes marking, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 6116127 042/217: Updated README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 11a710d 044/217: Correct annotation highlighting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 49bd528 045/217: working on README, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode d357a77 038/217: New 'scala-indent:align-parameters' customization variable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode af0e387 053/217: Fixes #18: highlight escapes in strings after chars, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode bc446e7 120/217: sbt support is now in sbt-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 597d421 145/217: Seems the imenu var needs to be set in a very local way., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode c154f16 139/217: better join-line and fixup-whitespace, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode e277378 143/217: WIP on end-of-defun and beggining of defun which should make writing imenu functionality much easier., ELPA Syncer, 2021/08/29