mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 04:20:57 +01:00
24 lines
418 B
EmacsLisp
24 lines
418 B
EmacsLisp
|
|
(use-package flymake
|
||
|
|
:ensure nil
|
||
|
|
|
||
|
|
:hook
|
||
|
|
(sh-mode . flymake-mode)
|
||
|
|
(shell-script-mode . flymake-mode)
|
||
|
|
|
||
|
|
:custom
|
||
|
|
(flymake-no-changes-timeout nil)
|
||
|
|
|
||
|
|
:init
|
||
|
|
(defun tvd-flymake-install-hooks()
|
||
|
|
(add-hook 'before-save-hook #'flymake-start))
|
||
|
|
|
||
|
|
:bind
|
||
|
|
("!" . consult-flymake)
|
||
|
|
|
||
|
|
:config
|
||
|
|
(add-hook 'shell-script-mode-hook #'tvd-flymake-install-hooks))
|
||
|
|
|
||
|
|
(provide 'init-flymake)
|
||
|
|
;;; init-flymake.el ends here
|
||
|
|
|