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