general-def -> nil as not needed in :general keyword for use-package

This commit is contained in:
2025-02-17 16:39:28 +00:00
parent fc9cc064a1
commit cf56b4ba7a

View File

@@ -511,17 +511,15 @@ Setup the evil package, with some opinionated settings:
"M-," #'evil-jump-backward
"M-." #'evil-jump-forward)
(general-def
(:states '(normal motion visual)
:keymaps 'override
:states '(normal motion visual)
"gu" #'evil-upcase
"gU" #'evil-downcase
"M-y" #'yank-pop
"T" 'nil)
(general-def
(:states '(normal motion visual)
:keymaps 'override
:states '(normal motion visual)
:infix "T"
"w" #'transpose-words
"c" #'transpose-chars
@@ -591,8 +589,7 @@ in it.
(nmap
:keymaps 'minibuffer-local-map
"<escape>" #'abort-minibuffers)
(general-def
:states '(normal insert)
(:states '(normal insert)
:keymaps 'minibuffer-local-map
"<backtab>" #'switch-to-completions
"RET" #'exit-minibuffer
@@ -649,8 +646,7 @@ outperforming ~icomplete~ consistently when displaying results.
:config
(vertico-mode)
:general
(general-def
:state '(normal insert)
(:state '(normal insert)
:keymaps 'vertico-map
"M-j" #'vertico-next
"M-k" #'vertico-previous