From 173eb771e3138052952f4a16c59e86e1d3714794 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 17 Mar 2023 09:24:26 -0400 Subject: Add flymake shortcuts --- emacs/.config/emacs-kj/lisp/kj-bindings.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'emacs/.config') diff --git a/emacs/.config/emacs-kj/lisp/kj-bindings.el b/emacs/.config/emacs-kj/lisp/kj-bindings.el index b60db7a..2b25a03 100644 --- a/emacs/.config/emacs-kj/lisp/kj-bindings.el +++ b/emacs/.config/emacs-kj/lisp/kj-bindings.el @@ -13,9 +13,18 @@ ("C-c r g" . recompile) ("C-c r a" . eglot-code-actions) ("C-c r r" . eglot-rename) + ("C-c r n" . flymake-goto-next-error) + ("C-c r p" . flymake-goto-prev-error) ("C-c c i" . insert-char) ("C-c w u" . winner-undo) ("C-c w U" . winner-redo) - ("C-" . completion-at-point))) + ("C-" . completion-at-point)) + + :config + (defvar kj/flymake-repeat-map (make-sparse-keymap "flymake")) + (define-repeating-key kj/flymake-repeat-map "n" flymake-goto-next-error "next error") + (define-repeating-key kj/flymake-repeat-map "p" flymake-goto-prev-error "prev error") + (define-key kj/flymake-repeat-map (kbd "C-g") '("quit" . ignore)) + ) (provide 'kj-bindings) -- cgit v1.2.3