【发布时间】:2011-03-05 19:35:54
【问题描述】:
我正在使用 2.1 版的 Aquamacs 和来自 https://github.com/myfreeweb/django-mode 的 django-mode。我通过添加安装它(在安装 yasn-ps 之后)
(require 'django-html-mode)
(require 'django-mode)
(yas/load-directory "path-to/django-mode/snippets")
(add-to-list 'auto-mode-alist '("\\.djhtml$" . django-html-mode))
到我的 .emacs 文件。但有时 Aquamacs 使用标准 HTML 模式而不是 django-html-mode。只要文件以 html 标记开头,就会发生这种情况。
我必须进行哪些更改才能使 Aquamacs 优先考虑文件的扩展名而不是其内容(至少对于 .djthml 文件 - 其他一切正常)?
【问题讨论】: