From d656f499c6241bdbfa1a098d1a2c1732f22994d2 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 14 Apr 2024 14:35:39 +0630 Subject: (Emacs/core)+evil-numbers packages Increment/decrement number at point. Something from vim which is quite nice. --- Emacs/.config/emacs/core.org | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/core.org b/Emacs/.config/emacs/core.org index 9ff0905..26be8ab 100644 --- a/Emacs/.config/emacs/core.org +++ b/Emacs/.config/emacs/core.org @@ -271,6 +271,17 @@ though, as I may disagree with some. So I use it in a mode to mode basis. (use-package evil-collection :after evil) #+end_src +** Evil number +Increment/decrement a number at point like Vim does, but use bindings +that don't conflict with Emacs default. +#+begin_src emacs-lisp +(use-package evil-numbers + :after evil + :general + (nmmap + "+" #'evil-numbers/inc-at-pt + "-" #'evil-numbers/dec-at-pt)) +#+end_src * Completion Emacs is a text based interface. Completion is its bread and butter in providing good user experience. By default Emacs provides -- cgit v1.2.3-13-gbd6f