简体   繁体   中英

emacs: Can I stop js2-mode's syntax check?

Maybe that's a simple question: Can I stop js2-mode's syntax check? How ?

It seems it slows down the emacs process.

Thanks.

The short answer is, no, you can't. You could turn off the parser, but it would break most of the other stuff.

If you just want js2-mode -like indentation, you can use its indentation function with js-mode :

(add-hook 'js-mode-hook
          (lambda ()
            (require 'js2-mode)
            (setq indent-line-function 'js2-indent-line)))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM