fixup! feat(meow): Move cursor down after duplicating line

This commit is contained in:
Zelong Kuang
2025-12-11 20:32:50 +11:00
parent 004210ae27
commit 64e91031f3
3 changed files with 20 additions and 10 deletions

View File

@@ -6,10 +6,15 @@
(setf meow-expand-hint-remove-delay 0)
(setq duplicate-line-final-position 1)
(map! :map meow-normal-state-keymap
:leader "d" (lambda () (interactive) (duplicate-dwim) (next-line))
"M-p" 'duplicate-dwim
:desc "Duplicate line/region")
(map! :map meow-normal-state-keymap
:leader "y" 'copy-from-above-command
:desc "Copy from above")
(pcase system-type
('darwin ; macOS
(setq doom-font (font-spec :family "Maple Mono" :size 20))

View File

@@ -16,9 +16,14 @@
#+end_src
** Keybindings
#+begin_src emacs-lisp
(setq duplicate-line-final-position 1)
(map! :map meow-normal-state-keymap
:leader "d" (lambda () (interactive) (duplicate-dwim) (next-line))
"M-p" 'duplicate-dwim
:desc "Duplicate line/region")
(map! :map meow-normal-state-keymap
:leader "y" 'copy-from-above-command
:desc "Copy from above")
#+end_src
** Appearance settings
#+begin_src emacs-lisp

16
init.el
View File

@@ -21,7 +21,7 @@
;;layout ; auie,ctsrnm is the superior home row
:completion
;;company ; the ultimate code completion backend
(corfu +icons +orderless) ; complete with cap(f), cape and a flying feather!
(corfu +icons +orderless +dabbrev) ; complete with cap(f), cape and a flying feather!
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life
@@ -35,10 +35,10 @@
;; (emoji +unicode) ; 🙂
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;; indent-guides ; highlighted indent columns
( ligatures +extras) ; ligatures and symbols to make your code pretty again
;; (ligatures +extras) ; ligatures and symbols to make your code pretty again
;;minimap ; show a map of the code on the side
modeline ; snazzy, Atom-inspired modeline, plus API
nav-flash ; blink cursor line after big motions
;; nav-flash ; blink cursor line after big motions
;;neotree ; a project drawer, like NERDTree for vim
ophints ; highlight the region an operation acts on
(popup +defaults) ; tame sudden yet inevitable temporary windows
@@ -50,17 +50,17 @@
vi-tilde-fringe ; fringe tildes to mark beyond EOB
window-select ; visually switch windows
workspaces ; tab emulation, persistence & separate workspaces
( zen +mixed-pitch-mode) ; distraction-free coding or writing
;; ( zen +mixed-pitch-mode) ; distraction-free coding or writing
:editor
(meow +qwerty)
;; (evil +everywhere) ; come to the dark side, we have cookies
file-templates ; auto-snippets for empty files
fold ; (nigh) universal code folding
;; fold ; (nigh) universal code folding
(format +onsave +lsp) ; automated prettiness
;;god ; run Emacs commands without modifier keys
;;lispy ; vim for lisp, for people who don't like vim
;; multiple-cursors ; editing in many places at once
;;multiple-cursors ; editing in many places at once
;;objed ; text object editing for the innocent
;;parinfer ; turn lisp into python, sort of
;;rotate-text ; cycle region at point between text candidates
@@ -92,7 +92,7 @@
ansible
biblio ; Writes a PhD for you (citation needed)
;;collab ; buffers with friends
debugger ; FIXME stepping through code, to help you add bugs
;; debugger ; FIXME stepping through code, to help you add bugs
direnv
( docker +lsp +tree-sitter)
editorconfig ; let someone else argue about tabs vs spaces
@@ -106,7 +106,7 @@
;;pass ; password manager for nerds
pdf ; pdf enhancements
;;terraform ; infrastructure as code
;; tmux ; an API for interacting with tmux
;;tmux ; an API for interacting with tmux
tree-sitter ; syntax and parsing, sitting in a tree...
upload ; map local to remote projects via ssh/ftp