home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit d3723b8880d122586d1dbe1b90d56aee89d9fb9a
parent ad986b30fd1be13844836b9384f397a4817d5a9c
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed,  7 Feb 2024 18:54:23 +0100

tools/emacs: configure some flymake

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/programming-config.el | 35+++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/programming-config.el b/tools/emacs/config/programming-config.el @@ -18,6 +18,41 @@ (use-package adoc-mode :mode ("\\.adoc\\'" . conf-toml-mode)) +(use-package flymake + :defer t + :bind + ( + :map flymake-diagnostics-buffer-mode-map + ("p" . + (lambda()(interactive) + (previous-line) + (save-excursion + (flymake-show-diagnostic(point))))) + ("n" . + (lambda()(interactive) + (next-line) + (save-excursion + (flymake-show-diagnostic(point))))) + ( + :map flymake-project-diagnostics-mode-map + ("p" . + (lambda()(interactive) + (previous-line) + (save-excursion + (flymake-show-diagnostic(point))))) + ("n" . + (lambda()(interactive) + (next-line) + (save-excursion + (flymake-show-diagnostic(point))))))) + :hook + (prog-mode . flyspell-prog-mode) + (prog-mode . flymake-mode)) + +(use-package flymake-codespell + :after flymake + :hook (prog-mode . flymake-codespell-setup-backend)) + ;; (use-package copilot ;; :preface ;; (unless (package-installed-p 'copilot)