From 8f05fb0b6f5a1df2879c81703a1f8425c51ae6df Mon Sep 17 00:00:00 2001
From: Aryadev Chavali <aryadev@aryadevchavali.com>
Date: Sat, 15 Feb 2025 21:57:05 +0000
Subject: Use Jagger for C-M-{h, l}

Jagger has better movements for moving objects laterally than
Drag-stuff, so I've decided to use it.
---
 Emacs/.config/emacs/config.org | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

(limited to 'Emacs')

diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index b9f2693..0a406a8 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -4228,8 +4228,9 @@ Avy-style link following!
     "gL" #'ace-link))
 #+end_src
 ** Drag Stuff
-Drag stuff around, like my favourite russian programmer (Tsoding).
-Useful mechanism which works better than any vim motion.
+Drag stuff around, like my favourite russian programmer (Tsoding).  I
+use it for moving around lines - for moving "words" or "symbols"
+around, I use [[*Jagger][Jagger]].
 
 #+begin_src emacs-lisp
 (use-package drag-stuff
@@ -4237,10 +4238,20 @@ Useful mechanism which works better than any vim motion.
   :defer t
   :general
   (nmmap
-    "C-M-h" #'drag-stuff-left
     "C-M-j" #'drag-stuff-down
-    "C-M-k" #'drag-stuff-up
-    "C-M-l" #'drag-stuff-right))
+    "C-M-k" #'drag-stuff-up))
+#+end_src
+** Jagger
+Jagger is the only package I could find that allowed me to move
+symbols around as I wanted.
+#+begin_src emacs-lisp
+(use-package jagger
+  :straight (:host github :repo "twlz0ne/jagger")
+  :defer t
+  :general
+  (nmmap
+    "C-M-h" #'jagger-move-sexp-backward
+    "C-M-l" #'jagger-move-sexp-forward))
 #+end_src
 ** Separedit
 Edit anything anywhere all at once!
-- 
cgit v1.2.3-13-gbd6f