Add motion to SPC prefix general leader
And fixed a bug to make them consistent.
This commit is contained in:
parent
4778e0692c
commit
334517380c
3 changed files with 21 additions and 8 deletions
|
@ -347,13 +347,14 @@ I'm not trying an experiment where specially-placed function keys on my fancy er
|
||||||
:config
|
:config
|
||||||
(general-evil-setup t)
|
(general-evil-setup t)
|
||||||
(general-create-definer ha-leader
|
(general-create-definer ha-leader
|
||||||
:keymaps '(normal visual)
|
:states '(normal visual motion)
|
||||||
|
:keymaps 'override
|
||||||
:prefix "SPC"
|
:prefix "SPC"
|
||||||
:non-normal-prefix "M-SPC"
|
:non-normal-prefix "M-SPC"
|
||||||
:global-prefix "<f13>")
|
:global-prefix "<f13>")
|
||||||
|
|
||||||
(general-create-definer ha-local-leader
|
(general-create-definer ha-local-leader
|
||||||
:states '(normal visual)
|
:states '(normal visual motion)
|
||||||
:prefix "SPC m"))
|
:prefix "SPC m"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Top-Level Operations
|
*** Top-Level Operations
|
||||||
|
@ -672,6 +673,18 @@ While the ~C-h~ is easy enough, I am now in the habit of typing ~SPC h~ instead.
|
||||||
"h i" '("info" . info))
|
"h i" '("info" . info))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Let's make Info behave a little more VI-like:
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package info
|
||||||
|
:straight (:type built-in)
|
||||||
|
:general
|
||||||
|
(:states 'normal :keymaps 'Info-mode-map
|
||||||
|
"o" 'ace-link-info
|
||||||
|
"b" 'Info-history-back
|
||||||
|
"TAB" 'Info-history-forward
|
||||||
|
"p" 'Info-backward-node
|
||||||
|
"n" 'Info-forward-node)) ; Old habit die hard
|
||||||
|
#+END_SRC
|
||||||
*** Consult Enhancements
|
*** Consult Enhancements
|
||||||
The [[https://github.com/minad/consult][consult]] package is a replacement for selecting buffers and other /speciality functions/, similar to the [[https://oremacs.com/2015/04/09/counsel-completion/][Ivy's counsel completion]] project. I think I may be adding it sparingly, as personally, I read files and buffers based on the selected /project/.
|
The [[https://github.com/minad/consult][consult]] package is a replacement for selecting buffers and other /speciality functions/, similar to the [[https://oremacs.com/2015/04/09/counsel-completion/][Ivy's counsel completion]] project. I think I may be adding it sparingly, as personally, I read files and buffers based on the selected /project/.
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ One other helper routine is a =general= macro for org-mode files:
|
||||||
#+NAME: ha-org-leader
|
#+NAME: ha-org-leader
|
||||||
#+BEGIN_SRC emacs-lisp :tangle no
|
#+BEGIN_SRC emacs-lisp :tangle no
|
||||||
(general-create-definer ha-org-leader
|
(general-create-definer ha-org-leader
|
||||||
:states '(normal visual)
|
:states '(normal visual motion)
|
||||||
:keymaps 'org-mode-map
|
:keymaps 'org-mode-map
|
||||||
:prefix "SPC m")
|
:prefix "SPC m")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
|
@ -30,7 +30,7 @@ Seems that all programming interfaces and workflows behave similarly. However...
|
||||||
One other helper routine is a =general= macro for org-mode files:
|
One other helper routine is a =general= macro for org-mode files:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(general-create-definer ha-prog-leader
|
(general-create-definer ha-prog-leader
|
||||||
:states '(normal visual)
|
:states '(normal visual motion)
|
||||||
:keymaps 'prog-mode-map
|
:keymaps 'prog-mode-map
|
||||||
:prefix "SPC m")
|
:prefix "SPC m")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in a new issue