diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-27 14:42:15 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-27 15:09:46 +0530 |
commit | 870ce03d0279bc1ce7215c311b061d68c95fdbc1 (patch) | |
tree | ccbdb0d3576055d5427afd923856fcc55aa3b8d7 /Emacs/.config/emacs/config.org | |
parent | eb5b11e71bfc3a9f8cacd47fa747b05e19479f27 (diff) | |
download | dotfiles-870ce03d0279bc1ce7215c311b061d68c95fdbc1.tar.gz dotfiles-870ce03d0279bc1ce7215c311b061d68c95fdbc1.tar.bz2 dotfiles-870ce03d0279bc1ce7215c311b061d68c95fdbc1.zip |
(Emacs/config|core|elisp)+move.el
Library to move words forward and backward as well as lines up and
down. These movements keep the object in question under the cursor
which provides a nice experience.
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r-- | Emacs/.config/emacs/config.org | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 56beaf2..f962021 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -190,26 +190,11 @@ any buffers in ~+oreo/keep-buffer~ and kills the rest. (kill-buffer buf))) (buffer-list))) #+end_src -** Move line {up/down} -Shamelessly copied from -[[https://emacsredux.com/blog/2013/04/02/move-current-line-up-or-down/][this -article]]. Will be bound in [[file:core.org::*Some binds in -Emacs][core.org]]. -#+begin_src emacs-lisp -(defun move-line-up () - "Move up the current line." - (interactive) - (transpose-lines 1) - (forward-line -2) - (indent-according-to-mode)) - -(defun move-line-down () - "Move down the current line." - (interactive) - (forward-line 1) - (transpose-lines 1) - (forward-line -1) - (indent-according-to-mode)) +** 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). |