refactor!(default): drag-stuff: make non-evil only

BREAKING CHANGE: This makes the drag-stuff package and its keybinds only
available to non-evil users. This was done because the package doesn't
bring much value for evil users, where text-objects are more powerful.
Plus, drag-stuff doesn't interact well with visual block or line modes
in evil, rendering drag-stuff-{left,right} not useful enough to warrant
keeping.
This commit is contained in:
Henrik Lissner 2024-09-01 23:28:02 -04:00
parent 86ee153786
commit 816db4a62a
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 9 additions and 1 deletions

View file

@ -584,6 +584,14 @@ Continues comments if executed from a commented line."
(add-hook 'doom-first-buffer-hook #'delete-selection-mode)
(setq shift-select-mode t)
(use-package! drag-stuff
:defer t
:init
(map! "<M-up>" #'drag-stuff-up
"<M-down>" #'drag-stuff-down
"<M-left>" #'drag-stuff-left
"<M-right>" #'drag-stuff-right))
(use-package! expand-region
:commands (er/contract-region er/mark-symbol er/mark-word)
:config