Skip to content

Commit

Permalink
refactor(flymake): use add-hook instead of +add-hook! in simple c…
Browse files Browse the repository at this point in the history
…ases
  • Loading branch information
abougouffa committed Jan 20, 2024
1 parent a32eb79 commit e1bc8a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/me-checkers.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
(use-package flymake-guile
:straight t
:init
(when (executable-find "guild") (+add-hook! scheme-mode #'flymake-guile)))
(when (executable-find "guild") (add-hook 'scheme-mode-hook #'flymake-guile)))

(use-package flymake-quickdef
:straight t
Expand Down Expand Up @@ -107,12 +107,12 @@
(use-package flymake-nasm
:straight (:host github :repo "juergenhoetzel/flymake-nasm")
:init
(when (executable-find "nasm") (+add-hook! asm-mode #'flymake-nasm-setup)))
(when (executable-find "nasm") (add-hook 'asm-mode-hook #'flymake-nasm-setup)))

(use-package flymake-pyre
:straight (:host github :repo "juergenhoetzel/flymake-pyre")
:init
(when (executable-find "pyre") (+add-hook! asm-mode #'flymake-pyre-setup)))
(when (executable-find "pyre") (add-hook 'asm-mode-hook #'flymake-pyre-setup)))


(provide 'me-checkers)
Expand Down

0 comments on commit e1bc8a0

Please sign in to comment.