From 478d80379dbd497081b18f0bebc0d032e464c4b1 Mon Sep 17 00:00:00 2001 From: Niklas Carlsson Date: Tue, 5 Feb 2019 10:29:02 +0100 Subject: [PATCH 1/3] Harmonize next/previous The description of next and previous was not aligned with the actual functions that was being called. This patch aligns them. --- modules/config/default/+evil-bindings.el | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index d682e2f15..8f84290f1 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -510,23 +510,23 @@ (:prefix ("]" . "next") :desc "Decrease text size" "[" #'text-scale-decrease - :desc "Next buffer" "b" #'previous-buffer - :desc "Next diff Hunk" "d" #'git-gutter:previous-hunk - :desc "Next todo" "t" #'hl-todo-previous - :desc "Next error" "e" #'previous-error + :desc "Next buffer" "b" #'next-buffer + :desc "Next diff Hunk" "d" #'git-gutter:next-hunk + :desc "Next todo" "t" #'hl-todo-next + :desc "Next error" "e" #'next-error :desc "Next workspace" "w" #'+workspace/switch-left :desc "Next spelling error" "s" #'evil-prev-flyspell-error - :desc "Next spelling correction" "S" #'flyspell-correct-previous-word-generic) + :desc "Next spelling correction" "S" #'flyspell-correct-next-word-generic) (:prefix ("[" . "previous") - :desc "Increase text size" "]" #'text-scale-increase - :desc "Buffer" "b" #'next-buffer - :desc "Diff Hunk" "d" #'git-gutter:next-hunk - :desc "Todo" "t" #'hl-todo-next - :desc "Error" "e" #'next-error - :desc "Workspace" "w" #'+workspace/switch-right - :desc "Spelling error" "s" #'evil-next-flyspell-error - :desc "Spelling correction" "S" #'flyspell-correct-word-generic) + :desc "Increase text size" "]" #'text-scale-increase + :desc "Previous buffer" "b" #'previous-buffer + :desc "Previous diff Hunk" "d" #'git-gutter:previous-hunk + :desc "Previous todo" "t" #'hl-todo-previous + :desc "Previous error" "e" #'previous-error + :desc "Previous workspace" "w" #'+workspace/switch-right + :desc "Previous spelling error" "s" #'evil-previous-flyspell-error + :desc "Previous spelling correction" "S" #'flyspell-correct-word-generic) (:when (featurep! :feature workspaces) (:prefix ([tab] . "workspace") From fa564e33b9aed66200d0323e877148cbdb55daab Mon Sep 17 00:00:00 2001 From: Niklas Carlsson Date: Tue, 5 Feb 2019 10:52:45 +0100 Subject: [PATCH 2/3] Update text and workspaces as well These have a left/right and increase/behaviour. --- modules/config/default/+evil-bindings.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 8f84290f1..bc1042bdc 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -509,22 +509,22 @@ ((featurep! :completion helm) #'+helm/project-search))) (:prefix ("]" . "next") - :desc "Decrease text size" "[" #'text-scale-decrease + :desc "Increase text size" "]" #'text-scale-increase :desc "Next buffer" "b" #'next-buffer :desc "Next diff Hunk" "d" #'git-gutter:next-hunk :desc "Next todo" "t" #'hl-todo-next :desc "Next error" "e" #'next-error - :desc "Next workspace" "w" #'+workspace/switch-left + :desc "Next workspace" "w" #'+workspace/switch-right :desc "Next spelling error" "s" #'evil-prev-flyspell-error :desc "Next spelling correction" "S" #'flyspell-correct-next-word-generic) (:prefix ("[" . "previous") - :desc "Increase text size" "]" #'text-scale-increase + :desc "Decrease text size" "[" #'text-scale-decrease :desc "Previous buffer" "b" #'previous-buffer :desc "Previous diff Hunk" "d" #'git-gutter:previous-hunk :desc "Previous todo" "t" #'hl-todo-previous :desc "Previous error" "e" #'previous-error - :desc "Previous workspace" "w" #'+workspace/switch-right + :desc "Previous workspace" "w" #'+workspace/switch-left :desc "Previous spelling error" "s" #'evil-previous-flyspell-error :desc "Previous spelling correction" "S" #'flyspell-correct-word-generic) From 1ea507e56cd086a70cec838f409698687ac75cd8 Mon Sep 17 00:00:00 2001 From: Niklas Carlsson Date: Tue, 5 Feb 2019 10:56:55 +0100 Subject: [PATCH 3/3] Align flyspell as well --- modules/config/default/+evil-bindings.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index bc1042bdc..93ee54acc 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -515,7 +515,7 @@ :desc "Next todo" "t" #'hl-todo-next :desc "Next error" "e" #'next-error :desc "Next workspace" "w" #'+workspace/switch-right - :desc "Next spelling error" "s" #'evil-prev-flyspell-error + :desc "Next spelling error" "s" #'evil-next-flyspell-error :desc "Next spelling correction" "S" #'flyspell-correct-next-word-generic) (:prefix ("[" . "previous") @@ -525,7 +525,7 @@ :desc "Previous todo" "t" #'hl-todo-previous :desc "Previous error" "e" #'previous-error :desc "Previous workspace" "w" #'+workspace/switch-left - :desc "Previous spelling error" "s" #'evil-previous-flyspell-error + :desc "Previous spelling error" "s" #'evil-prev-flyspell-error :desc "Previous spelling correction" "S" #'flyspell-correct-word-generic) (:when (featurep! :feature workspaces)