summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-06 11:40:04 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-06 11:40:04 -0700
commit5a8dfa7b627362cc4fc0a13f124cd1d32773d4ea (patch)
tree1029ff6eefd2334ef86e554d7cab949bf9c4525e
parentadd breadcrumb (diff)
downloademacs.d-5a8dfa7b627362cc4fc0a13f124cd1d32773d4ea.tar.gz
configure bindings for flymake
-rw-r--r--config/init-flymake.el23
1 files changed, 15 insertions, 8 deletions
diff --git a/config/init-flymake.el b/config/init-flymake.el
index 2dc0550..d9ac82c 100644
--- a/config/init-flymake.el
+++ b/config/init-flymake.el
@@ -7,14 +7,21 @@
 
 ;;; Code:
 
-(require 'flymake)
-
-(setq flymake-start-on-save-buffer t)
-(setq flymake-fringe-indicator-position 'left-fringe)
-(setq flymake-suppress-zero-counters t)
-(setq flymake-proc-compilation-prevents-syntax-check t)
-(setq elisp-flymake-byte-compile-load-path load-path)
-(setq flymake-no-changes-timeout 9999)
+(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))
+  :hook
+  (prog-mode . flymake-mode)
+  :custom
+  (flymake-start-on-save-buffer t)
+  (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))
 
 (provide 'init-flymake)