From 00ca307ee766ce535f54cdffff06a7c7c4a2e9f3 Mon Sep 17 00:00:00 2001 From: Zelong Kuang Date: Thu, 11 Dec 2025 01:56:28 +1100 Subject: [PATCH] feat(meow): Add keybinding for duplicate-dwim command Add leader key binding 'd' in meow normal state to duplicate lines or regions using the duplicate-dwim function. Also includes minor formatting cleanup and typo fix in documentation. --- config.el | 3 +++ config.org | 13 ++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/config.el b/config.el index 59a8fb2..563e7eb 100644 --- a/config.el +++ b/config.el @@ -6,6 +6,9 @@ (setf meow-expand-hint-remove-delay 0) +(map! :map meow-normal-state-keymap + :leader "d" 'duplicate-dwim :desc "Duplicate line/region") + (pcase system-type ('darwin ; macOS (setq doom-font (font-spec :family "Maple Mono" :size 20)) diff --git a/config.org b/config.org index 7c59fdb..01f7863 100644 --- a/config.org +++ b/config.org @@ -14,8 +14,12 @@ #+begin_src emacs-lisp (setf meow-expand-hint-remove-delay 0) #+end_src +** Keybindings +#+begin_src emacs-lisp +(map! :map meow-normal-state-keymap + :leader "d" 'duplicate-dwim :desc "Duplicate line/region") +#+end_src ** Appearance settings - #+begin_src emacs-lisp (pcase system-type ('darwin ; macOS @@ -33,7 +37,6 @@ (setq display-line-numbers-type 'relative) (setq org-directory "~/org/") #+end_src - *** Themes **** ef-themes #+begin_src emacs-lisp :tangle packages.el @@ -73,7 +76,6 @@ (package! catppuccin-theme) #+end_src - *** Nano modeline #+begin_src emacs-lisp :tangle no (package! nano-modeline) @@ -98,7 +100,7 @@ #+end_src ** Plugins *** Yasnippet -Thisenables the feature of auto-expanding snippets when matching the pattern +This enables the feature of auto-expanding snippets when matching the pattern #+begin_src emacs-lisp (use-package! yasnippet @@ -135,9 +137,6 @@ Thisenables the feature of auto-expanding snippets when matching the pattern (setq gptel-backend (gptel-make-gh-copilot "Copilot")) ) #+end_src - -#+RESULTS: -: t *** Centaur tabs #+begin_src emacs-lisp (map! :map meow-normal-state-keymap