From 64e91031f358629a15e89df9943fb0259c048fbf Mon Sep 17 00:00:00 2001 From: Zelong Kuang Date: Thu, 11 Dec 2025 20:32:50 +1100 Subject: [PATCH] fixup! feat(meow): Move cursor down after duplicating line --- config.el | 7 ++++++- config.org | 7 ++++++- init.el | 16 ++++++++-------- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/config.el b/config.el index 65bd490..c0d2df2 100644 --- a/config.el +++ b/config.el @@ -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)) diff --git a/config.org b/config.org index 01a7100..4ac9934 100644 --- a/config.org +++ b/config.org @@ -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 diff --git a/init.el b/init.el index fdc0806..57cecbf 100644 --- a/init.el +++ b/init.el @@ -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