1
0
Fork 0

fix(emacs): add flymake

This commit is contained in:
Lucas Sta Maria 2025-09-01 20:31:22 +08:00
parent a6eb206550
commit 49c04bbf7e
Signed by: lucas
GPG key ID: F07FB16A826E3B47
2 changed files with 11 additions and 1 deletions

View file

@ -83,6 +83,7 @@
:custom
(utop-command "opam exec -- dune utop . -- -emacs")
(tuareg-match-clause-indent 0)
(tuareg-mode-name "🐫")
:hook
((tuareg-mode . electric-pair-local-mode)
(tuareg-mode . electric-indent-local-mode)))

View file

@ -15,7 +15,8 @@
:init
(fset #'jsonrpc--log-event #'ignore)
:config
(add-to-list 'eglot-server-programs '(nix-mode "nil")))
(add-to-list 'eglot-server-programs '(nix-mode "nil"))
(add-to-list 'eglot-server-programs '(python-mode . ("ruff" "server" "--preview"))))
(use-package eglot-booster
:straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
:after (eglot)
@ -30,6 +31,14 @@
:after (eglot tuareg)
:hook ((tuareg-mode . ocaml-eglot)))
(use-package flymake
:bind (:map flymake-mode-map
("C-c ! l" . flymake-show-buffer-diagnostics)
("C-c ! L" . flymake-show-project-diagnostics)))
(use-package flymake-ruff :straight t :after (flymake))
(use-package flymake-rust :straight t :after (flymake))
(provide 'priime-lsp)
;;; priime-lsp.el ends here