mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
revert: refactor(evil): remove +evil--dont-move-cursor-a
Turns out that the behavior this advice fixes was not fully addressed,
so I'm restoring it.
Revert: 4def7f359c
This commit is contained in:
@ -143,6 +143,12 @@ directives. By default, this only recognizes C directives.")
|
|||||||
(count-lines (point-min) (point-max))
|
(count-lines (point-min) (point-max))
|
||||||
(buffer-size)))))
|
(buffer-size)))))
|
||||||
|
|
||||||
|
;; HACK: '=' moves the cursor to the beginning of selection. Disable this,
|
||||||
|
;; since it's more disruptive than helpful.
|
||||||
|
(defadvice! +evil--dont-move-cursor-a (fn &rest args)
|
||||||
|
:around #'evil-indent
|
||||||
|
(save-excursion (apply fn args)))
|
||||||
|
|
||||||
;; HACK: In vim, registers 2-9 are global. In Evil, they're buffer-local. so
|
;; HACK: In vim, registers 2-9 are global. In Evil, they're buffer-local. so
|
||||||
;; I enforce vim's way.
|
;; I enforce vim's way.
|
||||||
;; REVIEW: PR this upstream?
|
;; REVIEW: PR this upstream?
|
||||||
|
Reference in New Issue
Block a user