作者:贱男人少勾引天d_483 | 来源:互联网 | 2023-05-18 22:42
Ihavebeentryingtogetmmm-modetowork,specificallyforRailsdevelopment.Ihavefollowedthe
I have been trying to get mmm-mode to work, specifically for Rails development. I have followed the install instructions and I can't get to the specific mixed mode and special highlighting I was looking for. Most specifically erb files. Here is my .emacs file:
我一直试图让mmm模式工作,特别是Rails开发。我已按照安装说明操作,无法进入特定的混合模式和特殊突出显示我正在寻找。最具体的是erb文件。这是我的.emacs文件:
(custom-set-variables
'(custom-enabled-themes (quote (zenburn)))
'(custom-safe-themes (quote ("71b172ea4aad108801421cc5251edb6c792f3adbaecfa1c52e94e3d99634dee7" default)))
'(show-paren-mode t))
(custom-set-faces
)
;; File associations.
(setq auto-mode-alist (cons '("\\.builder$" . ruby-mode) auto-mode-alist))
(require 'mmm-auto)
(setq mmm-submode-decoration-level 0)
(mmm-add-group
'fancy-html
'((html-erb
:submode ruby-mode
:match-face (("<%#" . mmm-comment-submode-face)
("<%=" . mmm-output-submode-face)
("<%" . mmm-code-submode-face))
:front "<%[#=]?"
:back "%>"
:insert ((?% erb-code nil @ "<%" @ " " _ " " @ "%>" @)
(?# erb-comment nil @ "<%#" @ " " _ " " @ "%>" @)
(?= erb-expression nil @ "<%=" @ " " _ " " @ "%>" @)))))
(add-to-list 'mmm-mode-ext-classes-alist '(html-mode nil fancy-html))
Despite having a smooth install process following the instructions I have yet to be able to get highlighting to work in my erb files. I am running emacs 24 if that matters. So I followed the directions on in the download. I placed the folder afterwards in my .emacs.d folder. I have access to mmm-mode stuff in M-x. I just don't get highlighting for my modes and I can't find any reference to the declared modes.
尽管按照说明顺利安装过程,我仍然无法突出显示在我的erb文件中工作。如果重要的话,我正在运行emacs 24。所以我按照下载中的说明进行操作。我之后将文件夹放在.emacs.d文件夹中。我可以访问M-x中的mmm模式。我只是没有突出显示我的模式,我找不到任何对声明模式的引用。
PS: Side note I can't get my zenburn theme to stick but that's a different mater.
PS:旁注我不能让我的zenburn主题坚持,但这是一个不同的主。
EDIT: The "instructions" I am referring to are at THIS link and the INSTALL file included with the targz in the download.
编辑:我指的“指令”是在这个链接和下载中的targz包含的INSTALL文件。
2 个解决方案