标签: nxhtml

下划线作为前进单词不起作用的单词的一部分

我试图让下划线被视为此处此处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)

emacs emacs23 nxhtml

12
推荐指数
2
解决办法
2852
查看次数

Emacs,nxhtml如何突出显示或跳转到关闭html标签?

我正在使用带有nxhtml的 emacs 来编辑我的HTML文件,但是我找不到如何突出显示或跳转到结束 HTML标记?

这听起来像一个简单而愚蠢的问题,但我真的找不到它.也许我不是在找正确的事.

emacs nxhtml

10
推荐指数
2
解决办法
2143
查看次数

每次打开.html.erb文件时都会设置eruby-nxhtml-mumamo-mode

我下载了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 ++ - 模式和其他模式,我知道工作,但也不起作用.

那么正则表达式的问题是什么?我不确定.任何帮助,将不胜感激.

emacs ruby-on-rails nxhtml

5
推荐指数
1
解决办法
358
查看次数

标签 统计

emacs ×3

nxhtml ×3

emacs23 ×1

ruby-on-rails ×1