我想为emacs安装tuareg-mode,然后我跟踪了这些指示。
我下载了包含以下内容的tuareg-2.0.7版本: Makefile、ocamldebug.el、README、tuareg.el、tuareg-pkg.el、tuareg.el file.el。
我按描述复制了这里的所有内容~/.elisp/tuareg-mode,并按照解释配置了.emacs文件。当我用emacs打开.ml文件时,会得到以下错误:
file mode specification error : (file-error "Cannot open load file" "tuareg-imenu")有人知道怎么修吗?
详细情况:
.emacs:
(add-to-list 'load-path "~/.elisp/tuareg-mode")
(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
(autoload 'tuareg-imenu-set-imenu "tuareg-imenu"
"Configuration of imenu for tuareg" t)
(add-hook 'tuareg-mode-hook 'tuareg-imenu-set-imenu)
(setq auto-mode-alist
(append '(("\\.ml[ily]?$" . tuareg-mode)
("\\.topml$" . tuareg-mode))
auto-mode-alist))复制tuareg-2.0.7内容的路径:~/.elisp/tuareg-mode
~/.elisp/tuareg-mode的内容:
Makefile
ocamldebug.el
README
tuareg.el
tuareg-pkg.el
tuareg-site-file.el发布于 2019-01-21 12:10:37
看起来caml-mode被废弃了,caml-create-index-function不可用。因此,imenu在tuareg-mode中的支持现在失效了。但有个解决办法:
(defalias 'tuareg-imenu-create-index 'merlin-imenu-create-index)https://stackoverflow.com/questions/24251553
复制相似问题