In the modern text editor, you can move a line of a group of lines up and down. It’s very interesting when you want make your code more clean.
Drag stuff make this for you, moving words, region, line and lines around in Emacs become easy using Alt-Up, Alt-Down, Alt-Right and Alt-Left.
Insert this code into your Emacs config file.
(use-package drag-stuff :ensure t :defer t :init (progn (drag-stuff-global-mode 1) (drag-stuff-define-keys)) )