小编oil*_*o11的帖子

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

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

emacs23 ×1

nxhtml ×1