(Emacs/config)~remove unnecessary general-def in :general sections
This commit is contained in:
@@ -768,14 +768,12 @@ selection list).
|
||||
(display-buffer-at-bottom)
|
||||
(window-height . 0.25))
|
||||
:general
|
||||
(general-def
|
||||
:keymaps 'ivy-minibuffer-map
|
||||
(:keymaps 'ivy-minibuffer-map
|
||||
"C-j" #'ivy-yank-symbol
|
||||
"M-j" #'ivy-next-line-or-history
|
||||
"M-k" #'ivy-previous-line-or-history
|
||||
"C-SPC" #'ivy-occur)
|
||||
(general-def
|
||||
:keymaps 'ivy-switch-buffer-map
|
||||
(:keymaps 'ivy-switch-buffer-map
|
||||
"M-j" #'ivy-next-line-or-history
|
||||
"M-k" #'ivy-previous-line-or-history)
|
||||
(nmap
|
||||
@@ -819,8 +817,7 @@ it.
|
||||
"r" #'counsel-recentf)
|
||||
(insert-leader
|
||||
"c" #'counsel-unicode-char)
|
||||
(general-def
|
||||
[remap describe-bindings] #'counsel-descbinds
|
||||
([remap describe-bindings] #'counsel-descbinds
|
||||
[remap load-theme] #'counsel-load-theme)
|
||||
:config
|
||||
(setq ivy-initial-inputs-alist '((org-insert-link . "^"))
|
||||
@@ -1293,8 +1290,7 @@ commands. I replace ~describe-function~, ~describe-variable~ and
|
||||
:defer t
|
||||
:commands (helpful-callable helpful-variable)
|
||||
:general
|
||||
(general-def
|
||||
[remap describe-function] #'helpful-callable
|
||||
([remap describe-function] #'helpful-callable
|
||||
[remap describe-variable] #'helpful-variable
|
||||
[remap describe-key] #'helpful-key)
|
||||
:display
|
||||
@@ -2550,12 +2546,11 @@ so you can actually read the text.
|
||||
(code-leader
|
||||
"c" #'compile
|
||||
"C" #'recompile)
|
||||
(:keymaps 'compilation-mode-map
|
||||
"g" nil) ;; by default this is recompile
|
||||
(nmmap
|
||||
:keymaps 'compilation-mode-map
|
||||
"c" #'recompile)
|
||||
(general-def
|
||||
:keymaps 'compilation-mode-map
|
||||
"g" nil) ;; by default this is recompile
|
||||
:display
|
||||
("\\*compilation\\*"
|
||||
(display-buffer-reuse-window display-buffer-at-bottom)
|
||||
@@ -2613,8 +2608,7 @@ quickly generate them in C/C++ projects.
|
||||
(use-package project
|
||||
:defer t
|
||||
:general
|
||||
(general-def
|
||||
:keymaps 'project-prefix-map
|
||||
(:keymaps 'project-prefix-map
|
||||
"R" #'+project/generate-tags)
|
||||
:config
|
||||
(defun +project/generate-tags ()
|
||||
|
||||
Reference in New Issue
Block a user