From f790e7276328964369c9fca370ae9bf0b48b859f Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Wed, 12 May 2021 12:29:18 +0200 Subject: [PATCH] fix(gs/emacs): Correct next/prev error bindings next-error and prev-error are weirdly broken in ways I don't entirely understand, but I only really use flycheck so I can just use the flycheck ones instead Change-Id: Icdb25950f6fdcca163c68db30366af0f6fa28d7d Reviewed-on: https://cl.tvl.fyi/c/depot/+/3108 Reviewed-by: grfn Tested-by: BuildkiteCI --- users/grfn/emacs.d/+bindings.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/users/grfn/emacs.d/+bindings.el b/users/grfn/emacs.d/+bindings.el index 91040eb71..d0d82ba72 100644 --- a/users/grfn/emacs.d/+bindings.el +++ b/users/grfn/emacs.d/+bindings.el @@ -210,7 +210,7 @@ private/hlissner/snippets." :desc "Buffer" :nv "b" #'doom/previous-buffer :desc "Diff Hunk" :nv "d" #'git-gutter:previous-hunk :desc "Todo" :nv "t" #'hl-todo-previous - :desc "Error" :nv "e" #'previous-error + :desc "Error" :nv "e" #'flycheck-previous-error :desc "Workspace" :nv "w" #'+workspace/switch-left :desc "Smart jump" :nv "h" #'smart-backward :desc "Spelling error" :nv "s" #'evil-prev-flyspell-error @@ -222,7 +222,7 @@ private/hlissner/snippets." :desc "Buffer" :nv "b" #'doom/next-buffer :desc "Diff Hunk" :nv "d" #'git-gutter:next-hunk :desc "Todo" :nv "t" #'hl-todo-next - :desc "Error" :nv "e" #'next-error + :desc "Error" :nv "e" #'flycheck-next-error :desc "Workspace" :nv "w" #'+workspace/switch-right :desc "Smart jump" :nv "l" #'smart-forward :desc "Spelling error" :nv "s" #'evil-next-flyspell-error @@ -635,8 +635,8 @@ private/hlissner/snippets." :v "V" #'er/contract-region ;; flycheck - :m "]e" #'next-error - :m "[e" #'previous-error + :m "]e" #'flycheck-next-error + :m "[e" #'flycheck-previous-error (:after flycheck :map flycheck-error-list-mode-map :n "C-n" #'flycheck-error-list-next-error