aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2000-05-11 14:33:15 +0000
committerDavid Aspinall2000-05-11 14:33:15 +0000
commitcc165f075b300ed4b20b6cbfa01582964d2936fa (patch)
tree0823a69ead623c349dd48104dcd4c35a4a8f63de
parent6fe58d49067e9c31cd46c019a6a41287d8161bf8 (diff)
Changes and compatibility fixes for specific menu/keybindings.
-rw-r--r--coq/coq.el19
1 files changed, 8 insertions, 11 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 3d99ba68..bea95141 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -49,14 +49,13 @@
;; ----- coq specific menu
-(defcustom coq-menu-entries
+(proof-defass-default menu-entries
'(["Intros" coq-Intros]
["Apply" coq-Apply]
["Search isos" coq-SearchIsos]
["Begin Section" coq-begin-Section]
["End Section" coq-end-Section]
- ["Compile" coq-Compile])
- "Entries for Coq menu.")
+ ["Compile" coq-Compile]))
;; ----- coq-shell configuration options
@@ -318,13 +317,13 @@ This is specific to coq-mode."
(l (string-match ".v" n)))
(compile (concat "make " (substring n 0 l) ".vo"))))
-(proof-defshortcut coq-Intros "Intros " ?i)
-(proof-defshortcut coq-Apply "Apply " ?a)
-(proof-defshortcut coq-begin-Section "Section " ?s)
+(proof-defshortcut coq-Intros "Intros " [?i])
+(proof-defshortcut coq-Apply "Apply " [?a])
+(proof-defshortcut coq-begin-Section "Section " [?s])
-(define-key proof-assistant-keymap ?e 'coq-end-Section)
-(define-key proof-assistant-keymap ?m 'coq-Compile)
-(define-key proof-assistant-keymap ?o 'coq-SearchIsos)
+(define-key coq-keymap [?e] 'coq-end-Section)
+(define-key coq-keymap [?m] 'coq-Compile)
+(define-key coq-keymap [?o] 'coq-SearchIsos)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -419,8 +418,6 @@ This is specific to coq-mode."
(setq proof-assistant-home-page coq-www-home-page)
- (setq proof-assistant-menu-entries coq-menu-entries)
-
(setq proof-mode-for-script 'coq-mode)
(setq proof-guess-command-line 'coq-guess-command-line)