aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2008-01-28 13:30:51 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2008-01-28 13:30:51 +0000
commita5f4838e1f1ad715b476041e9b6942312604103b (patch)
tree7cc5d6ed57c7e44e04836a1ae3147471f9325940 /isar
parent7755773c265b784a7ca55f3413b7ee14f345d2ee (diff)
Add hooks for unicode tokens within proof shell
Diffstat (limited to 'isar')
-rw-r--r--isar/isar-unicode-tokens.el35
1 files changed, 27 insertions, 8 deletions
diff --git a/isar/isar-unicode-tokens.el b/isar/isar-unicode-tokens.el
index 414b926a..ada9f804 100644
--- a/isar/isar-unicode-tokens.el
+++ b/isar/isar-unicode-tokens.el
@@ -221,6 +221,7 @@
;;; ("longleftrightarrow" . "←→")
;;; ("Longleftrightarrow" . "⇐⇒")
;;; ("longmapsto" . "❘→")
+ ("DodgyLongleftrightarrow" . "⇐woo⇒")
("hookrightarrow" . "↪")
("rightharpoonup" . "⇀")
("rightharpoondown" . "⇁")
@@ -305,6 +306,9 @@
("ffl" . "ffl")
))
+;; FIXME: not all of these shortcuts work, for some reason
+;; e.g. /0 although appears in input method prompts
+;; long arrows --> ==> don't appear in prompts
(defvar isar-shortcut-alist
'(; short cut, unicode string
("<>" . "⋄")
@@ -366,15 +370,30 @@
("''" . "″")
("'''" . "‴")
("''''" . "⁗")
- ("nat" . "ℕ")
- ("int" . "ℤ")
- ("rat" . "ℚ")
- ("real" . "ℝ")
- ("complex" . "ℂ")
(":=" . "≔")
- ("euro" . "€")
- ("yen" . "¥")
- ("cent" . "¢")))
+ ;; some word shortcuts, started with backslash otherwise
+ ;; too annoying.
+ ("\nat" . "ℕ")
+ ("\int" . "ℤ")
+ ("\rat" . "ℚ")
+ ("\real" . "ℝ")
+ ("\complex" . "ℂ")
+ ("\euro" . "€")
+ ("\yen" . "¥")
+ ("\cent" . "¢")))
+
+
+;;
+;; prover symbol support
+;;
+
+(eval-after-load "isar"
+ '(setq
+ proof-xsym-activate-command
+ (isar-markup-ml "change print_mode (insert (op =) \"xsymbols\")")
+ proof-xsym-deactivate-command
+ (isar-markup-ml "change print_mode (remove (op =) \"xsymbols\")")))
+
(provide 'isar-unicode-tokens)