branch: elpa/caml
commit 6ed600cde9d6bc9c6eb19b462b3da1e34d42abbb
Merge: 9fda737890 afa97cc2f2
Author: monnier <monn...@iro.umontreal.ca>
Commit: GitHub <nore...@github.com>

    Merge pull request #18 from erikmd/fix-bindings
    
    fix(caml.el): to comply with Emacs' manual D.2 Key Binding Conventions
---
 caml-help.el | 10 +++++-----
 caml.el      |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/caml-help.el b/caml-help.el
index 8adc2e5b57..4a7a327d3b 100644
--- a/caml-help.el
+++ b/caml-help.el
@@ -839,11 +839,11 @@ buffer positions."
 ;  (boundp 'caml-mode-map)
 ;  (keymapp caml-mode-map)
 ;  (progn
-;    (define-key caml-mode-map [?\C-c?i] 'ocaml-add-path)
-;    (define-key caml-mode-map [?\C-c?]] 'ocaml-close-module)
-;    (define-key caml-mode-map [?\C-c?[] 'ocaml-open-module)
-;    (define-key caml-mode-map [?\C-c?\C-h] 'caml-help)
-;    (define-key caml-mode-map [?\C-c?\t] 'caml-complete)
+;    (define-key caml-mode-map [?\C-c?i] #'ocaml-add-path)
+;    (define-key caml-mode-map [?\C-c?]] #'ocaml-close-module)
+;    (define-key caml-mode-map [?\C-c?[] #'ocaml-open-module)
+;    (define-key caml-mode-map [?\C-h?.] #'caml-help)
+;    (define-key caml-mode-map [?\C-c?\t] #'caml-complete)
 ;    (let ((map (lookup-key caml-mode-map [menu-bar caml])))
 ;      (and
 ;       (keymapp map)
diff --git a/caml.el b/caml.el
index 641e9b2dae..0dfa2fdd2b 100644
--- a/caml.el
+++ b/caml.el
@@ -315,7 +315,7 @@ have `caml-electric-indent' on, which see.")
     (define-key map [?\C-c?i] #'ocaml-add-path)
     (define-key map [?\C-c?\]] #'ocaml-close-module)
     (define-key map [?\C-c?\[] #'ocaml-open-module)
-    (define-key map [?\C-c?\C-h] #'caml-help)
+    (define-key map [?\C-h?.] #'caml-help)
     (define-key map [?\C-c?\t] #'caml-complete)
     ;; others
     (define-key map "\C-cb" #'caml-insert-begin-form)

Reply via email to