mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
racket-mode: avoid using flycheck-disable-checker
The problem is that at this point, flycheck-mode might not be active yet. Calling flycheck-disable-checker always call (flycheck-buffer) which would result in an error: (user-error "Flycheck mode disabled")
This commit is contained in:
@ -34,7 +34,8 @@
|
||||
(when (featurep! :checkers syntax)
|
||||
(add-hook! 'racket-xp-mode-hook
|
||||
(defun +racket-disable-flycheck-h ()
|
||||
(flycheck-disable-checker 'racket)))))
|
||||
(unless (memq 'racket flycheck-disabled-checkers)
|
||||
(push 'racket flycheck-disabled-checkers))))))
|
||||
|
||||
(unless (or (featurep! :editor parinfer)
|
||||
(featurep! :editor lispy))
|
||||
|
Reference in New Issue
Block a user