mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/flycheck: prevent flycheck popup buffer taking focus
When tooltip/childframe is off, long errors can spawn a popup window that, by default, will steal input focus. No more! Reported by @rgrinberg
This commit is contained in:
@ -22,6 +22,11 @@ errors.")
|
||||
;; Display errors a little quicker (default is 0.9s)
|
||||
(setq flycheck-display-errors-delay 0.25)
|
||||
|
||||
;; Don't commandeer input focus if the error message pops up (happens when
|
||||
;; tooltips and childframes are disabled).
|
||||
(after! flycheck
|
||||
(set-popup-rule! flycheck-error-message-buffer :select nil))
|
||||
|
||||
(add-hook! 'doom-escape-hook :append
|
||||
(defun +flycheck-buffer-h ()
|
||||
"Flycheck buffer on ESC in normal mode."
|
||||
|
Reference in New Issue
Block a user