I started using emacs very recently and decided to begin with doom emacs as it offers a lower barrier to entry. I was trying out the python mode, but noticed that diagnostic information take a little bit too long to display. Here’s a video where I compare doom (bottom) and neovim (top): video. With neovim, diagnostics appear almost immediately after exiting insert mode. So, I was wondering if the delay in emacs is inherent to emacs or maybe there is some variable the doom has set that defines the delay. For emacs,I am using the version with native compilation support, and for python, I am using the LSP.
There are several variables that control how long flycheck (or flymake) waits before it preforms diagnostic. The main ones involved here are:
Look them up with C-hv to see their documentation, what package they’re defined in, and current value (after their containing packages are loaded), and use C-hv to search for other variables with the name
idle in it.
Their upstream defaults tend to be relatively conservative, and Doom prefers more conservative defaults. To make them kick in faster, lower these delays in your config:
(after! PACKAGE (setq VARAIBLE NEW-SETTING))
;;; add to $DOOMDIR/config.el (after! flycheck (setq flycheck-idle-change-delay 0.5))
Side note: in the future, please do not ignore the issue template. At the very least, your
M-x doom/info would have been very helpful here in ruling out issues or mistakes.
Sorry for not following the guidelines. Thanks for the help! This actually fixed the issue. Is there any reason why the default delay is set high? Wouldn’t that make emacs appear less responsive?