How to disable Emacs-Flymake for html mode

后端 未结 4 702
你的背包
你的背包 2021-02-02 10:02

Here is my flymake setup in .emacs file:

 (when (load \"flymake\" t) 
         (defun flymake-pyflakes-init () 
           (let* ((temp-file (flymake-init-create         


        
4条回答
  •  不要未来只要你来
    2021-02-02 10:24

    In the error message you receive it's telling that it can't find the command-line XML validation tool xml. You can fix it by installing a compatible XML validation tool (xmllint is the right choice I guess).

    But if you really just want to disable Flymake for HTML and XML files you don't have to copy whole the flymake.el file and change it. Simply add this line your init file:

    (defun flymake-xml-init ())
    

    This overrides the function that Flymake calls for HTML and XML files with an empty function.

提交回复
热议问题