feat(meow): Move cursor down after duplicating

line

Add next-line call after duplicate-dwim to automatically advance cursor
to the newly duplicated line, improving workflow efficiency.
This commit is contained in:
Zelong Kuang
2025-12-11 19:32:02 +11:00
parent 00ca307ee7
commit 004210ae27
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,8 @@
(setf meow-expand-hint-remove-delay 0) (setf meow-expand-hint-remove-delay 0)
(map! :map meow-normal-state-keymap (map! :map meow-normal-state-keymap
:leader "d" 'duplicate-dwim :desc "Duplicate line/region") :leader "d" (lambda () (interactive) (duplicate-dwim) (next-line))
:desc "Duplicate line/region")
(pcase system-type (pcase system-type
('darwin ; macOS ('darwin ; macOS

View File

@@ -17,7 +17,8 @@
** Keybindings ** Keybindings
#+begin_src emacs-lisp #+begin_src emacs-lisp
(map! :map meow-normal-state-keymap (map! :map meow-normal-state-keymap
:leader "d" 'duplicate-dwim :desc "Duplicate line/region") :leader "d" (lambda () (interactive) (duplicate-dwim) (next-line))
:desc "Duplicate line/region")
#+end_src #+end_src
** Appearance settings ** Appearance settings
#+begin_src emacs-lisp #+begin_src emacs-lisp