feat(syntax): add flymake configuration
This commit is contained in:
parent
06c891e177
commit
1cae082d66
2 changed files with 29 additions and 6 deletions
|
@ -4,6 +4,7 @@
|
|||
;;; Flycheck
|
||||
|
||||
(use-package! flycheck
|
||||
:unless (modulep! +flymake)
|
||||
:commands flycheck-list-errors flycheck-buffer
|
||||
:hook (doom-first-buffer . global-flycheck-mode)
|
||||
:config
|
||||
|
@ -45,6 +46,7 @@
|
|||
|
||||
|
||||
(use-package! flycheck-popup-tip
|
||||
:unless (modulep! +flymake)
|
||||
:commands flycheck-popup-tip-show-popup flycheck-popup-tip-delete-popup
|
||||
:hook (flycheck-mode . +syntax-init-popups-h)
|
||||
:config
|
||||
|
@ -63,6 +65,7 @@
|
|||
|
||||
(use-package! flycheck-posframe
|
||||
:when (modulep! +childframe)
|
||||
:unless (modulep! +flymake)
|
||||
:hook (flycheck-mode . +syntax-init-popups-h)
|
||||
:config
|
||||
(setq flycheck-posframe-warning-prefix "! "
|
||||
|
@ -80,4 +83,20 @@
|
|||
|
||||
|
||||
;;
|
||||
;;; TODO Flymake
|
||||
;;; Flymake
|
||||
(use-package flymake
|
||||
:when (modulep! +flymake)
|
||||
:defer t
|
||||
:init
|
||||
(add-hook! (prog-mode text-mode) #'flymake-mode)
|
||||
:config
|
||||
(setq flymake-fringe-indicator-position 'right-fringe))
|
||||
|
||||
|
||||
(use-package flymake-popon
|
||||
:when (modulep! +flymake)
|
||||
:hook (flymake-mode . flymake-popon-mode)
|
||||
:config
|
||||
(setq flymake-popon-method (if (modulep! +childframe)
|
||||
'postframe
|
||||
'popon)))
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; checkers/syntax/packages.el
|
||||
|
||||
(package! flycheck :pin "784f184cdd9f9cb4e3dbb997c09d93e954142842")
|
||||
(package! flycheck-popup-tip :pin "ef86aad907f27ca076859d8d9416f4f7727619c6")
|
||||
(when (modulep! +childframe)
|
||||
(package! flycheck-posframe :pin "8f60c9bf124ab9597d681504a73fdf116a0bde12"))
|
||||
(unless (modulep! +flymake)
|
||||
(package! flycheck :pin "784f184cdd9f9cb4e3dbb997c09d93e954142842")
|
||||
(package! flycheck-popup-tip :pin "ef86aad907f27ca076859d8d9416f4f7727619c6")
|
||||
(when (modulep! +childframe)
|
||||
(package! flycheck-posframe :pin "8f60c9bf124ab9597d681504a73fdf116a0bde12")))
|
||||
|
||||
;; TODO flymake?
|
||||
;; Flymake
|
||||
(when (modulep! +flymake)
|
||||
(package! popon :recipe (:repo "https://codeberg.org/akib/emacs-popon"))
|
||||
(package! flymake-popon :recipe (:repo "https://codeberg.org/akib/emacs-flymake-popon")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue