emacs - 确定在 emacs 中定义了哪个函数的模块?

标签 emacs ocaml

假设我有以下内容

open A
open List

let double = map (fun x -> 2*x) [1;2;3]

在具有 merlin-mode 的 emacs 中,我可以将光标放在 map 上并执行 merlin-type-enlooking 来获取 map 的类型.

是否有类似的命令(在 merlin、tuareg 或其他语言中)可以告诉我 map 是模块 List 的一部分,而不是 A?

最佳答案

merlin-locate(通常绑定(bind)到C-c C-l)将跳转到正确的模块。

注意:目前此功能无法可靠运行。 更新:它应该从 merlin 2.2 开始工作

关于emacs - 确定在 emacs 中定义了哪个函数的模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30403057/

相关文章:

Emacs Yaml 编辑

makefile - 如何将 .cma 文件链接到我自己的 Frama_C 插件?

emacs - 在Emacs中,如何在当前文件的功能之间跳转?

emacs - 在字符模式下从 ansi-term 运行 Emacs 命令

emacs 键绑定(bind)在终端中不起作用

OCaml 类似于 Python 的 String join 方法

syntax-error - #load “unix.cma”导致语法错误

http - Ocaml : How compile a file using the module Http_Client. 方便吗?

functional-programming - ocaml中的复合函数

regex - 提取正则表达式的匹配项?