除了emacs ocaml错误消息中的字符外,还显示行号

时间:2013-10-19 01:23:41

标签: emacs ocaml tuareg

现在我正处于Emacs tuareg模式,我收到此错误消息

             * * *             * * * * * *       * *           Characters 2686-2820:

但是找不到发生的地方是不可能的。

这是我的.emacs文件 -

(add-to-list 'load-path "~/tuareg-caml-mode")
(add-to-list 'load-path "~/tuareg-2.0.4")
(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(require 'linum)             
(global-linum-mode 1)

1 个答案:

答案 0 :(得分:1)

我想知道同样的事情,并且怀疑那里必须有一些方便的解决方案。首先,我发现了这个:

http://www.ocamlpro.com/files/tuareg-mode.pdf

包含图阿雷格模式的所有相关快捷方式。其次,从该作弊表中,顶层的“ctrl-c`”(control-c撇号)将直接带您到达手头的错误。 (对我来说,当我将函数输入到顶层而不是完整的缓冲区时,这似乎更好。)