From 5a8dfa7b627362cc4fc0a13f124cd1d32773d4ea Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 6 Apr 2024 11:40:04 -0700 Subject: configure bindings for flymake --- config/init-flymake.el | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'config/init-flymake.el') 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) -- cgit 1.4.1