Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
dacf718e
Commit
dacf718e
authored
May 11, 2022
by
Ralf Jung
Browse files
Merge branch 'indentations' into 'master'
Updated suggested emacs indendation configuration See merge request
!776
parents
0b89b550
6df13ca8
Pipeline
#65796
passed with stage
in 27 minutes and 26 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
docs/editor.md
View file @
dacf718e
...
...
@@ -134,19 +134,48 @@ To solve some of these indentation errors you can add the following line to your
initialisation file:
```
(setq coq-smie-user-tokens
'(("∗" . "*")
'(("," . ":=")
("∗" . "->")
("-∗" . "->")
("∗-∗" . "
<
->")
("∗-∗" . "->")
("==∗" . "->")
("=∗" . "->") ;; Hack to match ={E1,E2}=∗
("|==>" . ":=")
("⊢" . "->")
("⊣⊢" . "<->")
("⋅" . "*")
("⊣⊢" . "->")
("↔" . "->")
("←" . "<-")
("→" . "->")
("=" . "->")
("==" . "->")
("/\\" . "->")
("⋅" . "->")
(":>" . ":=")
("by" . "now")
("forall" . "now")))
("forall" . "now") ;; NB: this breaks current ∀ indentation.
))
```
This will let the indentation strategy treat the Iris symbols (e.g.
`-∗`
) similar to the
closely related Coq symbols (e.g.
`->`
).
Note that
`->`
is used in many places, as its indentation behaviour is:
```
P ->
Q
```
This is the indentation behaviour is what we want, e.g. for
`∗`
:
```
P ∗
Q
```
Note that this configuration has some caveats.
Notably, the change to
`forall`
(which gives good behavior to e.g.
`iInduction xs as [|x xs IHxs] forall (ys).`
), now gives the following indentation
behavior to universal quantification:
```
∀ x,
P x
```
This is not what we want; the second line should be indented by 2 spaces.
## CoqIDE 8.9 and earlier on Linux (ibus-m17n)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment