mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-03-07 06:11:27 -08:00
tweak(syntax): configure flymake even without +flymake
Some major modes may only have a flymake checker (like beancount-mode), and since flymake is built into Emacs, it's possible the user may encounter `flymake-mode` even when they haven't enabled +flymake for this module, so at least load its flymake config.
This commit is contained in:
parent
6556a79abc
commit
dc0fc9d4f4
1 changed files with 6 additions and 2 deletions
|
|
@ -122,8 +122,12 @@
|
|||
;;; Flymake
|
||||
|
||||
(use-package! flymake
|
||||
:when (modulep! +flymake)
|
||||
:hook ((prog-mode text-mode) . flymake-mode)
|
||||
:defer t
|
||||
:init
|
||||
(when (modulep! +flymake)
|
||||
(add-hook 'prog-mode-hook #'flymake-mode)
|
||||
(add-hook 'text-mode-hook #'flymake-mode))
|
||||
|
||||
:config
|
||||
(setq flymake-fringe-indicator-position 'right-fringe
|
||||
flymake-wrap-around nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue