rejeep / drag-stuff.el

Drag stuff around in Emacs
233 stars 12 forks source link

Does not work in emacs 25 #25

Open rumatoest opened 7 years ago

rumatoest commented 7 years ago

When I move selection UP/DOWN It moves only line with cursor, but not all selected region. If my cursor is on line 3 with 4 and 5 lines selected - it will move only 3rd line, but 2 linese above (whenever I will move 3rd line) will be selected.

tjscollins commented 7 years ago

Having this issue as well.

tjscollins commented 7 years ago

Upon further testing the issue is fixed if I MANUALLY run eval-buffer while drag-stuff.el is open. Using (require 'drag-stuff) in init.el does nothing.

Any ideas why?

tjscollins commented 7 years ago

Current workaround is to add (load "/path/to/drag-stuff/drag-stuff.el") to my init.el This evals the file and now region dragging works. Simply using (require 'drag-stuff) does not work. No idea why.

legends2k commented 7 years ago

This issue happened to me too. I fixed it by calling (drag-stuff-define-keys).

;; enable drag-stuff everywhere
(drag-stuff-global-mode t)

;; apply default key bindings
(drag-stuff-define-keys)

does the trick.