-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[emacs-mode] enable yas-snippets for holscript mode more readily
Also adjust some of the snippets for more modern syntax.
- Loading branch information
Showing
13 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
tools/editor-modes/emacs/yasnippets/holscript-mode/Definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# -*- mode: snippet -*- | ||
# name: Definition of functions HOL4 | ||
# key: Define | ||
# expand-env: ((yas-indent-line 'fixed)) | ||
# expand-env: ((yas-indent-line 'auto)) | ||
# -- | ||
Definition $1_def: | ||
$2 | ||
Definition ${1:name}_def${2:[${3:attributes}]}: | ||
${4:equation(s)} | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# -*- mode: snippet -*- | ||
# name: Perform induction on given variable | ||
# name: Perform induction on given variable/term | ||
# key: Induct_on | ||
# expand-env: ((yas-indent-line 'fixed)) | ||
# group: tactics | ||
# -- | ||
Induct_on \`$1\` $0 | ||
Induct_on ‘$1’ $0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# -*- mode: snippet -*- | ||
# name: Theorem statement in HOl4 | ||
# name: Theorem statement in HOL4 | ||
# key: Theorem | ||
# expand-env: ((yas-indent-line 'fixed)) | ||
# -- | ||
Theorem $1: | ||
$2 | ||
Theorem ${1:theorem-name}${2:[${3:attributes}]}: | ||
${4:theorem-statement} | ||
Proof | ||
$3 | ||
End | ||
$0 | ||
QED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
tools/editor-modes/emacs/yasnippets/holscript-mode/qspecl_then
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# -*- mode: snippet -*- | ||
# name: Specialize given theorem based on term list, then give to theorem tactic | ||
# name: Specialize theorem with term list, then give to theorem tactic | ||
# key: qspecl_then | ||
# expand-env: ((yas-indent-line 'fixed)) | ||
# group: tactics | ||
# -- | ||
qspecl_then [${1:term quotations}] ${2:theorem tactic} ${3:theorem} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# -*- mode: snippet -*- | ||
# name: create a new subgoal prove with corresponding by clause | ||
# key: sg | ||
# key: by | ||
# expand-env: ((yas-indent-line 'fixed)) | ||
# group: tactics | ||
# -- | ||
\`${1:subgoal}\` | ||
by ( | ||
$0) | ||
‘${1:subgoal}’ | ||
by ($0) |