Add binding for merlin-occurrences

Also fix typo for binding prefix
This commit is contained in:
km 2016-07-07 03:22:31 -04:00 committed by Eivind Fonn
parent 7a05260136
commit e39df3d17f
2 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,7 @@ Make sure opam is initialized and configured.
| ~SPC m g b~ | Go back to the last position where the user did a locate |
| ~SPC m g g~ | Locate the identifier under point (same window) |
| ~SPC m g G~ | Locate the identifier under point (different window) |
| ~SPC m g o~ | List occurrences for identifier under point |
| ~SPC m g l~ | Prompt for identifier and locate |
| ~SPC m g i~ | Prompt for module name and switch to ML file |
| ~SPC m g I~ | Prompt for module name and switch to MLI file |

View File

@ -67,6 +67,7 @@
"gl" 'merlin-locate-ident
"gi" 'merlin-switch-to-ml
"gI" 'merlin-switch-to-mli
"go" 'merlin-occurrences
"hh" 'merlin-document
"ht" 'merlin-type-enclosing
"hT" 'merlin-type-expr
@ -75,7 +76,7 @@
(spacemacs/declare-prefix-for-mode 'tuareg-mode "me" "errors")
(spacemacs/declare-prefix-for-mode 'tuareg-mode "mg" "goto")
(spacemacs/declare-prefix-for-mode 'tuareg-mode "mh" "help")
(spacemacs/declare-prefix-for-mode 'tuareg-mode "mf" "refactor"))))
(spacemacs/declare-prefix-for-mode 'tuareg-mode "mr" "refactor"))))
(defun ocaml/init-ocp-indent ()
(use-package ocp-indent