这件事困扰了我一段时间。我使用“hi-lock”或更具体地说highlight-symbol 。但是,突出显示在 js2 模式下不起作用。
想知道在我深入挖掘之前是否有人能快速获胜。
最佳答案
已解决:
(eval-after-load "hi-lock"
'(defadvice hi-lock-set-pattern (around js2-hack activate compile)
"js2 sets `font-lock-fontified' to t but doesn't really use the font-lock mechanism "
(if (eq major-mode 'js2-mode)
(let ((font-lock-fontified nil))
ad-do-it)
ad-do-it)))
关于emacs - js2 模式下的高锁损坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11209282/