summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-19 10:00:16 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-19 10:00:16 -0700
commit9e06835ed691c73860bb80787feac092a3a033a3 (patch)
treebaeafb3e29116f0680c83fe7af7941f4620ff09f
parentsimplifies even more the git configuration (diff)
downloademacs.d-9e06835ed691c73860bb80787feac092a3a033a3.tar.gz
clean up a bit more `flymake` configuration
Adds a prefix for binding the keys.

Change-Id: I03adabea3ab6f2e909a6aa7398be663eb4c2784e
-rw-r--r--config/init-flymake.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/config/init-flymake.el b/config/init-flymake.el
index d9ac82c..d829c3c 100644
--- a/config/init-flymake.el
+++ b/config/init-flymake.el
@@ -10,9 +10,12 @@
 (use-package flymake
   :ensure nil
   :defer t
-  :bind (("C-c f" . flymake-show-buffer-diagnostics)
-         ("C-c C-p" . flymake-goto-prev-error)
-         ("C-c C-n" . flymake-goto-next-error))
+  :bind (:prefix "C-c !"
+		 :prefix-map flymake-prefix-map
+		 ("l" . consult-flymake)
+                 ("b" . flymake-show-project-diagnostics)
+                 ("n" . flymake-goto-next-error)
+                 ("p" . flymake-goto-prev-error))
   :hook
   (prog-mode . flymake-mode)
   :custom
@@ -20,8 +23,8 @@
   (flymake-fringe-indicator-position 'left-fringe)
   (flymake-suppress-zero-counters t)
   (flymake-proc-compilation-prevents-syntax-check t)
-  (elisp-flymake-byte-compile-load-path load-path)
-  (flymake-no-changes-timeout 9999))
+  (flymake-no-changes-timeout 9999)
+  (elisp-flymake-byte-compile-load-path load-path))
 
 (provide 'init-flymake)