From 915971d5aa5a812de1ef137088c33eb92c2cc5ca Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 6 May 2024 02:34:13 +0530 Subject: (Emacs/core|config)~use drag stuff instead of move.el Works with regions! --- Emacs/.config/emacs/config.org | 17 +++++++++++------ Emacs/.config/emacs/core.org | 7 ------- 2 files changed, 11 insertions(+), 13 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 05a9d62..12644ab 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -190,12 +190,6 @@ any buffers in ~+oreo/keep-buffer~ and kills the rest. (kill-buffer buf))) (buffer-list))) #+end_src -** Move -Allows {hjkl} movement of text objects. Will be bound in -[[file:core.org::*Some binds in Emacs][core.org]]. -#+begin_src emacs-lisp -(load-file (concat user-emacs-directory "elisp/move.el")) -#+end_src * Aesthetics General look and feel of Emacs (mostly disabling stuff I don't like). ** Themes @@ -849,6 +843,17 @@ eating up memory. :config (savehist-mode t)) #+end_src +** Drag Stuff +#+begin_src emacs-lisp +(use-package drag-stuff + :straight 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)) +#+end_src * Applications (loading) Emacs is basically an operating system whose primary datatype is text. Applications are interfaces/environments which serve a variety of diff --git a/Emacs/.config/emacs/core.org b/Emacs/.config/emacs/core.org index 3c2d293..f4e45d4 100644 --- a/Emacs/.config/emacs/core.org +++ b/Emacs/.config/emacs/core.org @@ -124,13 +124,6 @@ Some bindings that I couldn't fit elsewhere easily. :general ("C-x d" #'delete-frame) - (nmmap - :keymaps '(text-mode-map prog-mode-map) - "C-M-h" #'+move/word-backward - "C-M-j" #'+move/line-down - "C-M-k" #'+move/line-up - "C-M-l" #'+move/word-forward) - (nmmap "M-;" #'eval-expression "g=" #'align-regexp -- cgit v1.2.3-13-gbd6f