flymake 如何设置warning level

flymake-log-level 已经obsolete了,试了下设置warning-minimum-log-level也并不行。

有没有谁比较了解flymake的,求助啊。

elisp(Top) > Display > Warnings > Warning Options 里的:

These variables are used by users to control what happens when a Lisp program reports a warning.

– User Option: warning-minimum-level This user option specifies the minimum severity level that should be shown immediately to the user. The default is ‘:warning’, which means to immediately display all warnings except ‘:debug’ warnings.

– User Option: warning-minimum-log-level This user option specifies the minimum severity level that should be logged in the warnings buffer. The default is ‘:warning’, which means to log all warnings except ‘:debug’ warnings.

– User Option: warning-suppress-types This list specifies which warning types should not be displayed immediately for the user. Each element of the list should be a list of symbols. If its elements match the first elements in a warning type, then that warning is not displayed immediately.

– User Option: warning-suppress-log-types This list specifies which warning types should not be logged in the warnings buffer. Each element of the list should be a list of symbols. If it matches the first few elements in a warning type, then that warning is not logged.

我感觉这个文档的位置够奇怪的……


我又看了一下,放这个位置合理

设置了上面的参数还是不行。或者换一种解决方式,如何disable掉部分的warning。我先用着的主要是python的warning比较多,而且很多没用的,我参考了这里 https://www.reddit.com/r/emacs/comments/3c562f/using_emacs_elpy_flycheckpylint_how_to_disable/ 配置了下~/.config/flake8文件,但并没有生效。可能是因为我用的lsp,它并没有用flake8吧。