emacserror-messagingjs-beautify

How can I disable *Web Beautify Errors* from the Emacs web-beautify package?


I use the web-beautify package. And, while I'm tangling my org-mode files to html, css and js files, every time I tangle these, error pop-up messages come in a new buffer. That annoys me a great deal. How do I disable those?

(Note: the message come in a *Web Beautify Errors* buffer.)


Solution

  • I think that all you can sensibly do is suppress this buffer when Emacs tries to display it, because displaying it is hard-coded in web-beautify-format-region which sets the DISPLAY-ERROR-BUFFER argument when it calls shell-command-on-region.

    I think this will do the trick:

    ;; Avoid displaying the *Web Beautify Errors* buffer.
    (add-to-list 'display-buffer-alist
                 (cons "\\*Web Beautify Errors\\*"
                       (cons 'display-buffer-no-window
                             '((allow-no-window . t)))))