aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-14 14:35:39 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-14 14:35:39 +0630
commitd656f499c6241bdbfa1a098d1a2c1732f22994d2 (patch)
treeab1dc7a4c0f25b6f42f7c3000fdab5c495560048
parentb31efd7b2c4fd495d188650a1761a673ec74c97e (diff)
downloaddotfiles-d656f499c6241bdbfa1a098d1a2c1732f22994d2.tar.gz
dotfiles-d656f499c6241bdbfa1a098d1a2c1732f22994d2.tar.bz2
dotfiles-d656f499c6241bdbfa1a098d1a2c1732f22994d2.zip
(Emacs/core)+evil-numbers packages
Increment/decrement number at point. Something from vim which is quite nice.
-rw-r--r--Emacs/.config/emacs/core.org11
1 files changed, 11 insertions, 0 deletions
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