Emacs - nxhtml-mode - memory full

后端 未结 1 1783
盖世英雄少女心
盖世英雄少女心 2021-01-24 12:36

working with nxhtml-mode in emacs, I get problems since a few weeks. While working emacs pauses unexpectingly until showing a message in the mode line \"!MEM FULL!\"; obviously

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 13:26

    I got the same problem with emacs 23.3. Recently I switched to a version 24.1 hoping the problem will dissapear. Hélas.

    So I switched to the sgml-mode

    (add-to-list 'auto-mode-alist (cons (concat "\\." (regexp-opt '("xml" "xsd" "xslt" "xsl" "html" "htm" "wsdl" "xml.template" "xhtml" "jsp") t) "\\'") 'sgml-mode))
    
    
    (add-hook 'sgml-mode-hook
              '(lambda ()
                 (sgml-electric-tag-pair-mode)))
    

    Actuall, you can disable the xml validation:

    (setq rng-nxml-auto-validate-flag nil)
    

    I did it after your questions and comments and I don't have problems since.

    0 讨论(0)
提交回复
热议问题