Use evil better jumper with C-o / C-i

This jumps between "other jumps". Might build my own auto-mark/jump
that I can control and understand better.
This commit is contained in:
Howard Abrams 2023-11-16 08:51:50 -08:00
parent 6e92e3d13d
commit 0e8424b7cb

View file

@ -608,7 +608,8 @@ Cant remember all the shortcuts on the ~g~ key, and =which-key= displays the
"g ~" '("invert case" . evil-invert-case)
;; Use this ALL the time:
"g ;" '("last change" . evil-goto-last-change)
"g ;" '("last change →" . evil-goto-last-change)
"g :" '("last change ←" . evil-goto-last-change-reverse)
"g d" '("goto def" . evil-goto-definition)
"g i" '("resume insert" . evil-insert-resume)
"g v" '("resume visual" . evil-visual-restore)
@ -1647,6 +1648,18 @@ Notes:
- ~yS$<p>~ :: surrouds the line with HTML =<p>= tag (with extra carriage returns).
- ~ysiw'~ :: puts single quotes around the word, no matter the points position.
- ~(~ :: puts spaces /inside/ the surrounding parens, but ~)~ doesn't. Same with ~[~ and ~]~.
*** Evil Jump, er Better Jump
The [[https//github.com/gilbertw1/better-jumper][better-jumper project]] replaces the [[https://github.com/bling/evil-jumper][evil-jumper project]], essentially allowing you jump back to various movements. While I already use ~g ;~ to jump to the last change, this jumps /to the jumps/ … kinda. Im having a difficult time determining /what jumps/ are remembered.
#+begin_src emacs-lisp
(use-package better-jumper
:config
(better-jumper-mode +1)
(with-eval-after-load 'evil-maps
(define-key evil-motion-state-map (kbd "C-o") 'better-jumper-jump-backward)
(define-key evil-motion-state-map (kbd "C-i") 'better-jumper-jump-forward)))
#+end_src
** Additional Global Packages
The following defines my use of the Emacs completion system. Ive decided my /rules/ will be:
- Nothing should automatically appear; that is annoying and distracting.