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