aboutsummaryrefslogtreecommitdiff
path: root/isa/isabelle-system.el
diff options
context:
space:
mode:
authorDavid Aspinall2000-06-16 11:50:12 +0000
committerDavid Aspinall2000-06-16 11:50:12 +0000
commitfefe0c59d3a3ca46f26d2c7bb52c20234e3dcd9b (patch)
treeaec07ca83a7dd9d725be55e18af26fb56cdca095 /isa/isabelle-system.el
parent6470c02c16ad15cbab8f18b0fa09bfebe9b92743 (diff)
Tuned x-symbol config, moved settings to isabelle-system.el
Diffstat (limited to 'isa/isabelle-system.el')
-rw-r--r--isa/isabelle-system.el25
1 files changed, 25 insertions, 0 deletions
diff --git a/isa/isabelle-system.el b/isa/isabelle-system.el
index 2e6aa775..ef2e4c79 100644
--- a/isa/isabelle-system.el
+++ b/isa/isabelle-system.el
@@ -288,5 +288,30 @@ until Proof General is restarted."
(defpgdefault help-menu-entries isabelle-docs-menu)
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;; X-Symbol language configuration, and adding to completion table
+;;
+
+(defpgdefault x-symbol-language 'isabelle)
+
+(setq proof-xsym-font-lock-keywords
+ ;; fontification for tokens themselves (FIXME: broken)
+ '(("\\\\<[A-Za-z][A-Za-z0-9_']*>" (0 font-lock-type-face))))
+
+(eval-after-load "x-symbol-isabelle"
+ ;; Add x-symbol tokens to isa-completion-table and rebuild
+ ;; internal completion table if completion is already active
+'(progn
+ (defpgdefault completion-table
+ (append (proof-ass completion-table)
+ (mapcar (lambda (xsym) (nth 2 xsym))
+ x-symbol-isabelle-table)))
+ (if (featurep 'completion)
+ (proof-add-completions))))
+
+
+
+
(provide 'isabelle-system)
;; End of isabelle-system.el