Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Roux
Iris
Commits
6df13ca8
Commit
6df13ca8
authored
2 years ago
by
Jonas Kastberg
Committed by
Ralf Jung
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated suggested emacs indendation configuration
parent
0b89b550
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/editor.md
+39
-10
39 additions, 10 deletions
docs/editor.md
with
39 additions
and
10 deletions
docs/editor.md
+
39
−
10
View file @
6df13ca8
...
...
@@ -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
'(("∗" . "*")
("-∗" . "->")
("∗-∗" . "<->")
("==∗" . "->")
("⊢" . "->")
("⊣⊢" . "<->")
("⋅" . "*")
(":>" . ":=")
("by" . "now")
("forall" . "now")))
'(("," . ":=")
("∗" . "->")
("-∗" . "->")
("∗-∗" . "->")
("==∗" . "->")
("=∗" . "->") ;; Hack to match ={E1,E2}=∗
("|==>" . ":=")
("⊢" . "->")
("⊣⊢" . "->")
("↔" . "->")
("←" . "<-")
("→" . "->")
("=" . "->")
("==" . "->")
("/\\" . "->")
("⋅" . "->")
(":>" . ":=")
("by" . "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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment