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) (add-hook 'doom-first-buffer-hook #'delete-selection-mode)
(setq shift-select-mode t) (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 (use-package! expand-region
:commands (er/contract-region er/mark-symbol er/mark-word) :commands (er/contract-region er/mark-symbol er/mark-word)
:config :config

View file

@ -2,8 +2,8 @@
;;; config/default/packages.el ;;; config/default/packages.el
(package! avy :pin "be612110cb116a38b8603df367942e2bb3d9bdbe") (package! avy :pin "be612110cb116a38b8603df367942e2bb3d9bdbe")
(package! drag-stuff :pin "6d06d846cd37c052d79acd0f372c13006aa7e7c8")
(package! link-hint :pin "9153eafc776549376bb85d9ff555fef83aca8285") (package! link-hint :pin "9153eafc776549376bb85d9ff555fef83aca8285")
(unless (modulep! :editor evil) (unless (modulep! :editor evil)
(package! drag-stuff :pin "6d06d846cd37c052d79acd0f372c13006aa7e7c8")
(package! expand-region :pin "e8f4e0fe9c9a80a6a26e2b438502aba9a799d580")) (package! expand-region :pin "e8f4e0fe9c9a80a6a26e2b438502aba9a799d580"))