首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >emacs :文件模式规范错误

emacs :文件模式规范错误
EN

Stack Overflow用户
提问于 2014-06-16 20:20:19
回答 1查看 3.1K关注 0票数 1

我想为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文件时,会得到以下错误:

代码语言:javascript
复制
file mode specification error : (file-error "Cannot open load file" "tuareg-imenu")

有人知道怎么修吗?

详细情况:

.emacs

代码语言:javascript
复制
(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的内容:

代码语言:javascript
复制
Makefile
ocamldebug.el
README
tuareg.el
tuareg-pkg.el
tuareg-site-file.el
EN

回答 1

Stack Overflow用户

发布于 2019-01-21 12:10:37

看起来caml-mode被废弃了,caml-create-index-function不可用。因此,imenutuareg-mode中的支持现在失效了。但有个解决办法:

代码语言:javascript
复制
(defalias 'tuareg-imenu-create-index 'merlin-imenu-create-index)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24251553

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档