diff options
| author | James Nguyen <james@jojojames.com> | 2026-04-22 23:30:25 -0400 |
|---|---|---|
| committer | James Nguyen <james@jojojames.com> | 2026-04-22 23:30:25 -0400 |
| commit | 538e0b067cab23e870be59331cdbb5077d405239 (patch) | |
| tree | 6d712c2f38ae5d73ebd42071b43f91bade1be4ba | |
| parent | 12a4f9797a92df48fd4e009d91915372af7437e2 (diff) | |
Move to 1 want-g variable
| -rw-r--r-- | evil-collection.el | 5 | ||||
| -rw-r--r-- | modes/diff-mode/evil-collection-diff-mode.el | 10 | ||||
| -rw-r--r-- | modes/vlf/evil-collection-vlf.el | 8 |
3 files changed, 11 insertions, 12 deletions
diff --git a/evil-collection.el b/evil-collection.el index 10fa6f2..32fa922 100644 --- a/evil-collection.el +++ b/evil-collection.el @@ -115,6 +115,11 @@ This will bind additional find-* type commands, e.g. usages, assignments, etc.." :type 'boolean :group 'evil-collection) +(defcustom evil-collection-want-g-bindings t + "Whether to bind g* bindings." + :type 'boolean + :group 'evil-collection) + (defvar evil-collection--modes-with-delayed-setup `(emms eshell) diff --git a/modes/diff-mode/evil-collection-diff-mode.el b/modes/diff-mode/evil-collection-diff-mode.el index e8d7302..1015705 100644 --- a/modes/diff-mode/evil-collection-diff-mode.el +++ b/modes/diff-mode/evil-collection-diff-mode.el @@ -90,12 +90,8 @@ binding keys to a minor mode created by `evil-collection' instead." :type 'boolean :group 'evil-collection) -(defcustom evil-collection-diff-mode-want-g-bindings t - "Whether to bind to g prefix instead of single letter bindings. - -Only applies to `evil-collection-diff-mode-want-minor-mode' is t." - :type 'boolean - :group 'evil-collection) +(define-obsolete-variable-alias 'evil-collection-diff-mode-want-g-bindings + 'evil-collection-want-g-bindings "0.0.11") (defvar evil-collection-diff-mode-map (make-sparse-keymap)) @@ -124,7 +120,7 @@ Only applies to `evil-collection-diff-mode-want-minor-mode' is t." "\\" 'read-only-mode (kbd "RET") 'diff-goto-source) - (if evil-collection-diff-mode-want-g-bindings + (if evil-collection-want-g-bindings (evil-collection-define-key 'normal 'evil-collection-diff-mode-map "gA" 'diff-add-change-log-entries-other-window "ga" 'diff-apply-hunk diff --git a/modes/vlf/evil-collection-vlf.el b/modes/vlf/evil-collection-vlf.el index 12ed0d0..b1482e2 100644 --- a/modes/vlf/evil-collection-vlf.el +++ b/modes/vlf/evil-collection-vlf.el @@ -35,10 +35,8 @@ (defconst evil-collection-vlf-maps '(vlf-mode-map)) -(defcustom evil-collection-vlf-want-g-bindings t - "Whether to bind single keys to g prefix." - :type 'boolean - :group 'evil-collection) +(define-obsolete-variable-alias 'evil-collection-vlf-want-g-bindings + 'evil-collection-want-g-bindings "0.0.11") (defun evil-collection-vlf-decrease-batch-size () "Decrease vlf batch size by factor of 2." @@ -68,7 +66,7 @@ "g%" 'vlf-query-replace "go" 'vlf-occur) - (if evil-collection-vlf-want-g-bindings + (if evil-collection-want-g-bindings (evil-collection-define-key 'normal 'vlf-prefix-map "g/" 'vlf-re-search-forward "g?" 'vlf-re-search-backward |
