diff options
| author | David Aspinall | 2000-05-02 12:05:41 +0000 |
|---|---|---|
| committer | David Aspinall | 2000-05-02 12:05:41 +0000 |
| commit | e6d5b8b8b19ae60f76f34563b0a8eca4fb89e6e2 (patch) | |
| tree | c067a35ef2d1b8d5f57162e9f621fbd40a3fbfd7 /coq | |
| parent | dc7af5fb2c02eb960815e01741b9d2cb59c3844e (diff) | |
Added proof-assistant-keymap and commands for defining insert keys.
Diffstat (limited to 'coq')
| -rw-r--r-- | coq/coq.el | 34 |
1 files changed, 9 insertions, 25 deletions
@@ -283,18 +283,6 @@ ;; Commands specific to coq ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defun coq-Intros () - "Shortcut for Intros. -This is specific to coq-mode." - (interactive) - (insert "Intros ")) - -(defun coq-Apply () - "Shortcut for Apply -This is specific to coq-mode." - (interactive) - (insert "Apply ")) - (defun coq-SearchIsos () "Search a term whose type is isomorphic to given type This is specific to coq-mode." @@ -305,11 +293,6 @@ This is specific to coq-mode." (proof-shell-invisible-command (concat "SearchIsos " cmd proof-terminal-string)))) -(defun coq-begin-Section () - "begins a Coq section." - (interactive) - (insert "Section ")) - (defun coq-end-Section () "Ends a Coq section." (interactive) @@ -335,6 +318,15 @@ 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) + +(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) + + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Indentation ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -472,14 +464,6 @@ This is specific to coq-mode." (proof-config-done) -;; Coq-specific key mappings - - (define-key (current-local-map) [(control c) ?I] 'coq-Intros) - (define-key (current-local-map) [(control c) ?a] 'coq-Apply) - (define-key (current-local-map) [(control c) ?s] 'coq-begin-Section) - (define-key (current-local-map) [(control c) ?e] 'coq-end-Section) - (define-key (current-local-map) [(control c) (control m)] 'coq-Compile) - ;; outline (make-local-variable 'outline-regexp) |
