我试图让下划线被视为此处和此处forward/backward-word
描述的函数的一部分.我特意试图让它适用于模式,但是我真的希望它适用于所有模式.nxhtml
我已经修改了我的site-start.el
文件许多不同的方式但无济于事.但是如果我M-x modify-syntax-table
在缓冲区中手动执行命令,它就可以正常工作.我只是不能将此作为默认行为.
这是我尝试放入我的site-start.el
文件:
;; 1
;; thought this would apply it to all modes - no error, but did not work
(modify-syntax-entry ?_ "w")
;; 2
;; thought this would automatically set it on a mode change - no error, but did not work
(defun change-major-mode-hook ()
(modify-syntax-entry ?_ "w"))
;; 3
;; thought this would apply it to all modes - no error, but did not …
Run Code Online (Sandbox Code Playgroud) 我正在使用带有nxhtml的 emacs 来编辑我的HTML文件,但是我找不到如何突出显示或跳转到结束 HTML标记?
这听起来像一个简单而愚蠢的问题,但我真的找不到它.也许我不是在找正确的事.
我下载了nxhtml并解压缩.然后我把它放在我的.emacs文件中.
(add-to-list 'load-path "~/nxhtml/util")
(require 'mumamo-fun)
(setq mumamo-chunk-coloring 'submode-colored)
(add-to-list 'auto-mode-alist '("\\.rhtml\\'" . eruby-nxhtml-mumamo-mode))
(add-to-list 'auto-mode-alist '("\\.html\\.erb\\'" . eruby-nxhtml-mumamo-mode))
Run Code Online (Sandbox Code Playgroud)
当我打开.html.erb文件时,它没有正确的模式设置(因此语法突出显示不正确).我知道require语句正确运行b/c我可以手动将aquamacs设置为eruby-nxhtml-mumamo-mode,如果我注释掉require行,我甚至无法切换到该模式.我甚至尝试用其他模式替换eruby ...-模式,比如c ++ - 模式和其他模式,我知道工作,但也不起作用.
那么正则表达式的问题是什么?我不确定.任何帮助,将不胜感激.