all repos — nixfiles @ 65db313fe68326d95ad3a7f4bf1ada08b48de8a8

System and user configuration, managed by nix and home-manager

Emacs: bind C-a/C-q to change number at point like vim
Alan Pearce alan@alanpearce.eu
Thu, 02 Jan 2020 14:26:32 +0100
commit

65db313fe68326d95ad3a7f4bf1ada08b48de8a8

parent

f9dad789bc575eac04c894e64eba9dcf85e960d8

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M user/emacs/.emacs.d/init.eluser/emacs/.emacs.d/init.el
@@ -357,6 +357,12 @@ :commands (evil-quickscope-mode)   :ghook ('(magit-mode-hook git-rebase-mode-hook) #'turn-off-evil-quickscope-mode)
   :config (global-evil-quickscope-mode +1))
 
+(use-package evil-numbers
+  :after evil
+  :general (:states '(normal visual)
+                    "C-a" #'evil-numbers/inc-at-pt
+                    "C-q" #'evil-numbers/dec-at-pt))
+
 (use-package evil-org
   :after org
   :commands (evil-org-set-key-theme)
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -105,6 +105,7 @@ evil-ledger       evil-magit
       evil-matchit
       evil-mu4e
+      evil-numbers
       evil-org
       evil-quickscope
       evil-space