aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier2008-05-23 20:31:12 +0000
committerStefan Monnier2008-05-23 20:31:12 +0000
commita3507bd3c2cd362c0ffd7de5462e4cacf0cf9dc7 (patch)
treed442467b6d5500630c671ae45a732e469f7f5e92 /lisp/progmodes
parent9cc236e006e474dc83a90d0bb5bc5f6b99c9351e (diff)
downloademacs-a3507bd3c2cd362c0ffd7de5462e4cacf0cf9dc7.tar.gz
emacs-a3507bd3c2cd362c0ffd7de5462e4cacf0cf9dc7.zip
* textmodes/reftex-vars.el (reftex-extra-bindings-prefix): New var.
* textmodes/reftex.el (reftex-extra-bindings-map): New var. (reftex-extra-bindings): Use it. * progmodes/mixal-mode.el (mixal-mode-map): Move key-bindings away from the user-reserved keys. * progmodes/ada-mode.el (ada-mode-extra-map, ada-mode-extra-prefix): New vars. (ada-create-keymap): Use them.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/ada-mode.el28
-rw-r--r--lisp/progmodes/mixal-mode.el8
2 files changed, 23 insertions, 13 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index b4621d4af2c..663f13965d1 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -448,6 +448,13 @@ The extensions should include a `.' if needed.")
448(defvar ada-mode-map (make-sparse-keymap) 448(defvar ada-mode-map (make-sparse-keymap)
449 "Local keymap used for Ada mode.") 449 "Local keymap used for Ada mode.")
450 450
451(defvar ada-mode-extra-map (make-sparse-keymap)
452 "Keymap used for non-standard keybindings.")
453
454;; default is C-c C-q because it's free in ada-mode-map
455(defvar ada-mode-extra-prefix "\C-c\C-q"
456 "Prefix key to access `ada-mode-extra-map' functions.")
457
451(defvar ada-mode-abbrev-table nil 458(defvar ada-mode-abbrev-table nil
452 "Local abbrev table for Ada mode.") 459 "Local abbrev table for Ada mode.")
453 460
@@ -4537,6 +4544,9 @@ Moves to 'begin' if in a declarative part."
4537(defun ada-create-keymap () 4544(defun ada-create-keymap ()
4538 "Create the keymap associated with the Ada mode." 4545 "Create the keymap associated with the Ada mode."
4539 4546
4547 ;; All non-standard keys go into ada-mode-extra-map
4548 (define-key ada-mode-map ada-mode-extra-prefix ada-mode-extra-map)
4549
4540 ;; Indentation and Formatting 4550 ;; Indentation and Formatting
4541 (define-key ada-mode-map "\C-j" 'ada-indent-newline-indent-conditional) 4551 (define-key ada-mode-map "\C-j" 'ada-indent-newline-indent-conditional)
4542 (define-key ada-mode-map "\C-m" 'ada-indent-newline-indent-conditional) 4552 (define-key ada-mode-map "\C-m" 'ada-indent-newline-indent-conditional)
@@ -4585,23 +4595,23 @@ Moves to 'begin' if in a declarative part."
4585 'ada-point-and-xref) 4595 'ada-point-and-xref)
4586 (define-key ada-mode-map [(control tab)] 'ada-complete-identifier) 4596 (define-key ada-mode-map [(control tab)] 'ada-complete-identifier)
4587 4597
4588 (define-key ada-mode-map "\C-co" 'ff-find-other-file) 4598 (define-key ada-mode-extra-map "o" 'ff-find-other-file)
4589 (define-key ada-mode-map "\C-c5\C-d" 'ada-goto-declaration-other-frame) 4599 (define-key ada-mode-map "\C-c5\C-d" 'ada-goto-declaration-other-frame)
4590 (define-key ada-mode-map "\C-c\C-d" 'ada-goto-declaration) 4600 (define-key ada-mode-map "\C-c\C-d" 'ada-goto-declaration)
4591 (define-key ada-mode-map "\C-c\C-s" 'ada-xref-goto-previous-reference) 4601 (define-key ada-mode-map "\C-c\C-s" 'ada-xref-goto-previous-reference)
4592 (define-key ada-mode-map "\C-c\C-c" 'ada-compile-application) 4602 (define-key ada-mode-map "\C-c\C-c" 'ada-compile-application)
4593 (define-key ada-mode-map "\C-cc" 'ada-change-prj) 4603 (define-key ada-mode-extra-map "c" 'ada-change-prj)
4594 (define-key ada-mode-map "\C-cd" 'ada-set-default-project-file) 4604 (define-key ada-mode-extra-map "d" 'ada-set-default-project-file)
4595 (define-key ada-mode-map "\C-cg" 'ada-gdb-application) 4605 (define-key ada-mode-extra-map "g" 'ada-gdb-application)
4596 (define-key ada-mode-map "\C-c\C-m" 'ada-set-main-compile-application) 4606 (define-key ada-mode-map "\C-c\C-m" 'ada-set-main-compile-application)
4597 (define-key ada-mode-map "\C-cr" 'ada-run-application) 4607 (define-key ada-mode-extra-map "r" 'ada-run-application)
4598 (define-key ada-mode-map "\C-c\C-o" 'ada-goto-parent) 4608 (define-key ada-mode-map "\C-c\C-o" 'ada-goto-parent)
4599 (define-key ada-mode-map "\C-c\C-r" 'ada-find-references) 4609 (define-key ada-mode-map "\C-c\C-r" 'ada-find-references)
4600 (define-key ada-mode-map "\C-cl" 'ada-find-local-references) 4610 (define-key ada-mode-extra-map "l" 'ada-find-local-references)
4601 (define-key ada-mode-map "\C-c\C-v" 'ada-check-current) 4611 (define-key ada-mode-map "\C-c\C-v" 'ada-check-current)
4602 (define-key ada-mode-map "\C-cf" 'ada-find-file) 4612 (define-key ada-mode-extra-map "f" 'ada-find-file)
4603 4613
4604 (define-key ada-mode-map "\C-cu" 'ada-prj-edit) 4614 (define-key ada-mode-extra-map "u" 'ada-prj-edit)
4605 4615
4606 ;; The templates, defined in ada-stmt.el 4616 ;; The templates, defined in ada-stmt.el
4607 4617
@@ -4634,7 +4644,7 @@ Moves to 'begin' if in a declarative part."
4634 (define-key map "w" 'ada-while-loop) 4644 (define-key map "w" 'ada-while-loop)
4635 (define-key map "\C-x" 'ada-exception) 4645 (define-key map "\C-x" 'ada-exception)
4636 (define-key map "x" 'ada-exit) 4646 (define-key map "x" 'ada-exit)
4637 (define-key ada-mode-map "\C-ct" map)) 4647 (define-key ada-mode-extra-map "t" map))
4638 ) 4648 )
4639 4649
4640 4650
diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el
index 0c5bbba9651..eda74167b27 100644
--- a/lisp/progmodes/mixal-mode.el
+++ b/lisp/progmodes/mixal-mode.el
@@ -77,10 +77,10 @@
77;;; Key map 77;;; Key map
78(defvar mixal-mode-map 78(defvar mixal-mode-map
79 (let ((map (make-sparse-keymap))) 79 (let ((map (make-sparse-keymap)))
80 (define-key map "\C-cc" 'compile) 80 (define-key map "\C-c\C-c" 'compile)
81 (define-key map "\C-cr" 'mixal-run) 81 (define-key map "\C-c\C-r" 'mixal-run)
82 (define-key map "\C-cd" 'mixal-debug) 82 (define-key map "\C-c\C-d" 'mixal-debug)
83 (define-key map "\C-ho" 'mixal-describe-operation-code) 83 (define-key map "\C-h\C-o" 'mixal-describe-operation-code)
84 map) 84 map)
85 "Keymap for `mixal-mode'.") 85 "Keymap for `mixal-mode'.")
86;; (makunbound 'mixal-mode-map) 86;; (makunbound 'mixal-mode-map)