mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
add editorconfig + flymake support
This commit is contained in:
23
lisp/init-flymake.el
Normal file
23
lisp/init-flymake.el
Normal file
@@ -0,0 +1,23 @@
|
||||
(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
|
||||
|
||||
Reference in New Issue
Block a user