【问题标题】:emacs makefile-mode for Makefile.include用于 Makefile.include 的 emacs makefile 模式
【发布时间】:2014-02-25 12:12:09
【问题描述】:

我使用名为 Makefile.include 的文件作为 GNU makefile。我正在尝试让 emacs 使用 makefile-mode 来用于该文件。 Alt-X 生成文件模式有效。有没有办法告诉emacs在自动打开后立即对这个文件使用这个主要模式?

我试过了

# _*_ mode: makefile; _*_

在文件中,但似乎没有正确的效果。顺便说一句,我找不到在 mode: 之后可以使用的允许字符串列表,所以我也尝试了 BDSmakefile 和其他一些变体。

谢谢。

【问题讨论】:

标签: emacs makefile


【解决方案1】:

看到这个问题:Setting auto-mode-alist in emacs,并使用对 ("Makefile\\.include\\'" . makefile-mode)。

【讨论】:

  • 我有兴趣将它放在文件本身而不是 emacs 配置中。 syohex 是对的,我有一个错字...
猜你喜欢
  • 2019-02-28
  • 1970-01-01
  • 1970-01-01
  • 2021-06-02
  • 2010-11-28
  • 1970-01-01
  • 1970-01-01
  • 2010-10-21
相关资源
最近更新 更多