开发者

How to force a syntax-highlighting refresh in emacs?

开发者 https://www.devze.com 2023-02-24 03:55 出处:网络
In emacs, especially when ssh\'ed into a remote machine, there\'开发者_开发百科s a delay between when I type a closing quotation mark and when emacs updates the syntax-highlighting to reflect that cha

In emacs, especially when ssh'ed into a remote machine, there'开发者_开发百科s a delay between when I type a closing quotation mark and when emacs updates the syntax-highlighting to reflect that change. For a few seconds, all of the text after my quotation is highlighted as if it were part of the quotation. Usually this is fine, but sometimes I'd rather not wait. Is there a way to tell emacs to "re-highlight everything right now"?


Yes. The emacs command is M-x font-lock-fontify-buffer if I recall it right. You can bind it to a key sequence if it's not already bound in your mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消